AnsweredAssumed Answered

PHP -  rendering quotes from text question

Question asked by Oliver_Reid on Mar 7, 2012
Latest reply on Mar 8, 2012 by Oliver_Reid

As a dillettante PHP programmer, I am having trouble "gettting" htmlentities.

 

In a record in an ESS MySQL table I want tehuser to able to insert quotes (incudeing smart quotes) usng FMP and smart quotes and hav eth appear on PHP driven site,

 

But I want to be able also to insert links (which require quotes inside the tags) and other html markup have those work.

 

I have seen this work so there is away to do it

 

If I use

 

$content = str_replace(" ", '<br>', htmlentities($row['b_text'], ENT_NOQUOTES, 'cp1251'));

 

The quotes come through but the links and markup are rendered literally.

 

 

Help? Bev are you there?

Outcomes