I am parsing an xml file that stores data with images / headers that I need to display on my canvas. However, sometimes there is an object in the file and when drawing text on the canvas it is interpreted as flat text. How can I get © to display as & copy; on canvas? Is this possible, or does anyone know of a good job?
©
You can replace HTML objects with equivalent Unicode characters.
eg.
var x = 'This is © 2010'; x = x.replace( /©/, '\u00A9' ); // x is now 'This is © 2010'
Source: https://habr.com/ru/post/1307156/More articles:Java / JCE: decrypting a "long" message encrypted using RSA - javaJQuery: Live The tag partially works the second time - jqueryC # SendMessage for C ++ WinProc - c #Does sending a dictionary through multiprocessing.queue really mutate it somehow? - pythonWriting your own media library: where to start? - phpHow to generate a certificate request using SubjectAltNames in IIS 6.0? - certificatecss: no mapping. It is expensive? - htmlsend email to one ExactTarget subscriber without TriggeredSend - c #Logging SELECT statements in PostgreSQL 8.4 - sqljquery change attribute - jqueryAll Articles