0

Suppose I have this line of HTML

<div data-stuff='["Hi", "I'm a", "String"]'></div>

Obviously this will be a problem. How can I escape the single quote under > I'm? Am I forced to use ASCII code &#39;? or is there an alternative?

1 Answers1

0

You can try with '["Hi", "I&rsquo;m a", "String"]'

Jhonmer Araujo
  • 461
  • 1
  • 5
  • 12
  • While this code may answer the question, providing additional context regarding **how** and/or **why** it solves the problem would improve the answer's long-term value. – Alexander Apr 03 '18 at 16:58