svg - raphael: show HTML entity within a tag -
i want add together html entity raphael tag, see text deg , not grade sign -
this.tags.push( // create tag (x, y, text, degree, radius) r.tag(this.x, this.y[i], this.values[i]+ "°c", 20, 4).insertbefore(this) ...
how can escape it?
i not sure language displays text, html, javascript or svg ...
you can pass fromcharcode raphael node.
r.text(100, 100, string.fromcharcode(176));
would render ° entity in text node.
svg raphael html-entities graphael
No comments:
Post a Comment