keiranking / Phil

A crossword maker.
http://www.keiranking.com/phil
Apache License 2.0
282 stars 85 forks source link

cross.js: get clues via textContent instead of innerHTML to avoid HTML encoding and stray html tags #28

Open maiamcc opened 4 years ago

maiamcc commented 4 years ago

👋what an excellent project!

Dropping this PR here because I was getting annoyed by clues exporting as

"Law & Order" spinoff, briefly

and also it seemed that any stray HTML tags that ended up in a clue due to copy-paste being impossible to get rid of.

Couldn't test it very thoroughly because I ran into problems generating xwsolve.js and gave up, but I think this does the trick.