Lets say you have this string in a variable (case insensitive):
`etc etc etc<!-- etc etc<scRipT> etc`
Enter fullscreen mode
...
For further actions, you may consider blocking this person and/or reporting abuse
Something here seems to have messed up the article's feed card. The estimated read time and the save button are missing and instead there is a link to the article with weird text, the word "in" prefixed with a back tick, a quote character, and a space.
I don't know how you did it, but Bobby Tables would be proud.
EDIT: Ah, I see it now. Having the commented script tag in the title is the issue and the extra link's weird text is the title's text between the script tags. Someone should definitely file an issue about this.
wow! I did not think it would create issue in this website.
For me it looks ok though.
Edit:
I found it!
I can't replicate this, is it device specific or is it a particular part of the site (specific feed item)?
I changed the title, since it was causing an issue
The issue could be seen at dev.to/latest
This event was an accident though. I was just telling people about about handling input strings that are shown in a page and the title bugged.
Can't replicate it, how strange!
I have internet shortage right now so I can not test locally.
I will try replicating it locally and let you know exact steps when the internet problem is fixed, if you want. :)
I have never worked with forem repo before. It will be fun!
That's how browsers parse HTML. Otherwise writing HTML parsers would be a headache.
mhm.. but it does break the page!
xD
true! people hardly assigns like that.. the problem arises when someone is taking input from an api :)
yup! it's safe as long as the string is not showing in the html that client receives.
So, if someone needs to show the string received from an api they have to be careful