Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

seedphrase's avatar

Pagination previous « » next

Hey how can I hide « and &raquo without using v-htm? Thanks.

        <template v-for="(link, key) in links">
                        <div
                            v-if="link.url === null"
                            :key="key"
                            class="mb-1 mr-1 px-4 py-3 text-gray-400 text-sm font-medium leading-4 border rounded"
                        >
                            {{ link.label }}
                        </div>
                        <Link
                            v-else
                            :key="`link-${key}`"
                            class="mb-1 mr-1 px-4 py-3 focus:text-gray-900 text-gray-700 text-sm font-semibold leading-4 hover:bg-gray-100 border focus:border-gray-400 rounded"
                            :class="{ 'bg-gray-100': link.active }"
                            :href="link.url"
                        >
                            {{ link.label }}
                        </Link>
                    </template>
0 likes
8 replies
MohamedTammam's avatar
{{ link.label.replaceAll('&laquo;', '').replaceAll('&raquo;', '') }}
jessecardoso's avatar

The problem is that the & is an HTML entity and must be replaced with &amp;

{{ link.label.replaceAll('&amp;laquo;', '').replaceAll('&amp;raquo;', '') }}

Please or to participate in this conversation.