PHP Classes

  and " " ignored

Recommend this page to a friend!

      VS PHP Word HTML  >  All threads  >    and " " ignored  >  (Un) Subscribe thread alerts  
Subject:  and " " ignored
Summary:Spaces before tags are ignored
Messages:1
Author:LucioB
Date:2016-09-04 14:03:02
 

  1.   and " " ignored   Reply   Report abuse  
Picture of LucioB LucioB - 2016-09-04 14:03:02
Hi,

really appreciate your work!

I need help with a php string that I need to print in a doc file.
This string is made like this:
$myString = "The car is&nbsp;<i>red</red>";

Expected output should be:
The car is red (with red in italic)
Instead i get:
The car isred (with red in italic)

I've tried to replace &nbsp; with " " before doing $parser->parse($myString); but with no luck.
I've also tried replace "<i>" with " <i>" as well as "</i>", but once again no luck.

Could you please help me?
Thank you very much.

Keep working on this great class :)