xzhang395 / Stalk-Market

find the best turnip price
Apache License 2.0
2 stars 2 forks source link

Fix the scrubInput method to remove all HTML tags #13

Closed davidpchi closed 4 years ago

davidpchi commented 4 years ago

The code to scrub the input wasn't actually doing a regex, but instead simply checking against a string.

This new fix will remove all html tags from the provided string input.

davidpchi commented 4 years ago

It appears that you guys have migrated now to react, which should automatically handle XSS projection on strings. Hence, closing this PR.