Tedd, Adam,

Thank you for your advice. While I'm very grateful for your advice, unfortunately, it seems that the core of what you suggest do not fit my situation.

First, with Adam's suggestion that I use <br /> instead of <p>. The output I am generating is akin to what csszengarden.com generates, so that I can have complete CSS control over page layout and style. <br /> tags are limited in their scope of design control as compared to <p> tags, so they are insufficient.

Second, with Tedd's advice that I place the variable without formatting within the HTML code. I apologize if I was unclear, as I seem to have given you the wrong impression. I am absolutely trying to separate content from design, which is why everything the user stores is in plain text, and all the formatting happens when it is displayed. None of the modifications which add HTML to the variable get put back into the database.

The only small formatting consideration that does get stored in the database are the simulated tags (eg: --++ for <h3>). I'm not totally thrilled about letting users create some formatting with simulated tags, but the trade off is for giving the users more flexibility. I'm following the same model as WikiMedia, SMF Forums, and other PHP based user input interfaces. And I am trying to be more strict and less expansive than they are.

I really am grateful for your advice, but it seems that I really do need to find a way to create <p> tags around the text when it is displayed.

But I definitely thank you for giving me something to think about, and also the tips on how to make my code more efficient.

It's my hope that someone can still steer me towards the ability to get <p> tags surrounding paragraphs, and to be able to separate <h3> and other tags from within those <p> tags.

--
Dave M G

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to