decklist icon indicating copy to clipboard operation
decklist copied to clipboard

Apostrophes are not handled correctly in invalid card names

Open KingSupernova31 opened this issue 7 years ago • 1 comments

If the user enters an unrecognized card name, any apostrophes will be rendered as their HTML code of "'". (The "single right quote" character that some sites use is rendered properly.)

KingSupernova31 avatar Jul 28 '18 02:07 KingSupernova31

This line just needs to have its .replace(/'/g, '&#39;') removed. Thinking about it, it'd probably be safe to remove everything except the replacements for <, > and &... The replacements for ' and " may not be needed.

Nightfirecat avatar Jul 29 '18 20:07 Nightfirecat