There seems to be a problem with your HTML parser ...
# replo-help
w
There seems to be a problem with your HTML parser in page settings > Custom Page <head> section. In my example screencap it's a simple klavyio tracking <script>, but the parser is complaining about && and < characters in the code and wouldn't let me save (though this script was already there, so it must've worked fine in the past).
t
This post is now synced! Check it out here: HTML Parser Issues in Custom Page Settings: Troubleshooting Tips ⤵️ Any future comments will be automatically posted to the thread
w
I fixed it for myself with a tiny rewrite, this is more of an FIY.
n
yeah, seems like the parsing is not taking the script content into account. I think you could add this as a custom html component, I believe the validation is slightly different there since we assume there will be more nested <script> tags
we'll update the error here though!
👍 1
yep, was able to fix this - specifically an issue with the ampersands. Should be out later today 🫡
w
Cool, I had a problem with the "lass than" sign too
All other JS logical operators seem to work fine, only seeing the error with && and <
n
Yeah, it’s because < and & are special characters in html that the parser is getting tripped up on haha. That should be taken care of here too!