HTML encode attribute values #350
dargmuesli
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Shouldn't this also encode
&
to&
?unhead/packages/ssr/src/util/propsToString.ts
Lines 1 to 3 in 955ce57
Maybe just run the full
escapeHtml
on it?I noticed because Nuxt's html validator module pointed out that a link like
<link href="/_ipx/f_webp&s_4162x6018/header.jpg">
includes an invalid "&s
", i.e. ampersand.Beta Was this translation helpful? Give feedback.
All reactions