P tag in javascript.
-
Hello, I’ve been successfully using wp-d3 for a while now. Today I ran into the following problem: if js code contains symbols <p>, WordPress inserts a newline character before them, making code invalid.
For example, if I write
node.html("<p>" + text + "</p>")
the newline is inserted right after the first quote character.
I don’t really know if the problem is in wp-d3 or in WordPress itself, but it would be great if you could suggest a way to make this work.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘P tag in javascript.’ is closed to new replies.