Hello I am using the following working code and i would like to append the value of variable $something on the class of “<div class=\“lcp-customfield\”>”
Because he starts off the string with single quote (') rather than a double quote (") which is used by css, which changes what needs escaped. If the html / css code required a single quote, then you would be doing some escaping with his code as well.
Don’t fret about that too much, as it is purely a style of coding technique. He chose one that didn’t require backslashes. If you want it to still use backslashes, you the following does exactly the same thing