-
Beta Was this translation helpful? Give feedback.
Answered by
nobkd
Mar 5, 2024
Replies: 1 comment 1 reply
-
It looks like you are using Maybe you already pass an escaped version of HTML code to the highlighter?
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
ArnavK-09
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It looks like you are using
nuxt-glow
on its own. Can you provide a small code example/reproduction?Maybe you already pass an escaped version of HTML code to the highlighter?
(as the
&
and;
are highlighted differently thanlt
andgt
)<
== lower than ==<
and>
== greater than ==>
.These characters are typically encoded for code blocks, to enforce, that the
<
or>
is text and not part of HTML markup. ⇾ Prevent accidental rendering of code as HTML