Mayhem93 / Simblog

Simblog aims to be one of the most easy-to-use and lightweight blogging platforms. It emphasizes user experience, workflow, and ease of use without neglecting usability and extensibility. It will take full advantage of what HTML5 and CSS3 have to offer without delving too deeply into experimental features.
GNU General Public License v3.0
6 stars 2 forks source link

Put every paragraph in a <p> #9

Closed Mayhem93 closed 12 years ago

Mayhem93 commented 12 years ago

Put every paragraph in a

so that we can use stylesheets to make the first line indented.

A solution: str_explode for \n on the content and then prepend

then prepend

Mayhem93 commented 12 years ago

The solution I gave is bad, a better one is to insert the whole content in a DOMDocument (after it has been wrapped in tags) then select all text nodes and insert them in

Mayhem93 commented 12 years ago

No longer needed, we got Kendo HTML editor.