Skip to content
Advertisement

Tag: html-entities

Use HTML entities in my block in Vue.js

I want to use the HTML-Symbols &#9650 and &#9660 that stand for “arrow up” and “arrow down” in the <script> section of my Vue.js component. I know that something simple as the following doesn’t work. But I tried different functions that I found on the internet and nothing worked. Answer There are two ways to achieve this : Use v-html

JavaScipt: Pass HTML entities as function parameter

Is there any way to pass HTML entities as function parameters in JavaScript. I am building a React app and I need to pass HTML entities from parent component to child component as a prop and then display character represented by that entity in the child component. For example, please refer stackblitz here. In Hello component I need to print

Advertisement