I want to use the HTML-Symbols ▲ and ▼ 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
Tag: html-entities
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
Document.write() throws Unexpected token “ILLEGAL”
Before you ask, I already searched a lot in Stack Overflow and I google it thousand times. Any other case I ever seen here helped me. Let’s go to my problem: I’m trying to use the following script in my code: But I’m using Blogger and it don’t detect correctly my code (note the red script closing tag): With this,