Proper markup is achieved how?
-
I’ve been tasked with creatnig a custom CMS for an intranet site. That’s the easy part. The difficult part is properly marking up the text from the database. For instance, if the text in the database is
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Ut fermentum est at felis. Integer sagittis leo at leo.
ul>
li>…../li>
/ul>how does WP turn that into
p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Ut fermentum est at felis. Integer sagittis leo at leo./p>
ul>
li>…../li>
/ul>Notice that the paragraph tags have been inserted in the proper locations to ensure xhtml validity. I’ve been trying to develop an algorithm for a little while now and I’m stumped. Perhaps I’m thinking harder than I should? I assume there’s a function or collection of functions in WP that I could reference?
- The topic ‘Proper markup is achieved how?’ is closed to new replies.