Link to home
Start Free TrialLog in
Avatar of interclubs
interclubs

asked on

PHPFunction to create document.write

I am looking for a PHP function that I can call like this:

function DocumentDotWrite($variable,$MaintainLines)

Where I can pass in a variable, if MaintainLines is set to true, it will create a document.write('') for each line, if it is set to false, it will remove all line breaks and create 1 statement. I guess it probably probably has to escape some html or quotes as well?
ASKER CERTIFIED SOLUTION
Avatar of Roger Baklund
Roger Baklund
Flag of Norway image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial