python - Django, replace adding an extra ? -


In my demo model, I am doing some HTML input. HTML is showing fine except during an output except for an output Ive using some shortcuts for things like "extra spaces" to use admin for less technical wishing people: Ie: If they have a & amp; Call it & amp; Emsp;

  is replaced with .replace ("& amp;", "& amp; emsp;")   

Hoover, My queries are being output instead:

  & amp; Emsp; Emsp;   

Who has confused me Any ideas why I am getting an additional EMSP ;; It's not looping and place & amp; A second time.

Thank you.

Assume that you have "& amp; emsp" already in your html?

OK,

  .replace ("& amp; e," & amp; emsp; ")   

will be created :

  & amp; Emsp; EMSP;   

You need to make sure that you replace that method which is already called "& amp; emsp".

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -