-
Notifications
You must be signed in to change notification settings - Fork 13
Closed
Labels
Type: FeatureIncludes new featuresIncludes new features
Description
Discussed in #759
Originally posted by judge330 March 27, 2022
Hey!
Is there a way to use simple html tags in component like with v-html?
Example:
Vue-Template:
<i18n path="general-register-info" tag="span">
<template #showTermsModalSpan="{ generalPagesTerms }">
<span class="underline cursor-pointer" @click.prevent="showModal('terms')">{{ generalPagesTerms }}</span>
</template>
</i18n>
Imported ftl file with <br>
and <strong>
general-pages-terms = Terms
general-register-info =
Register here.<br> But respect <strong>our terms</strong> (see {$showTermsModalSpan}).
.general-pages-terms = { general-pages-terms }
Result:
Register here.<br> But respect <strong>our terms</strong> (see <ins>Terms</ins>).
Expected:
Register here.
But respect our terms (see Terms).
Metadata
Metadata
Assignees
Labels
Type: FeatureIncludes new featuresIncludes new features