Stripping table tags in content
-
Wish I designed the site recently and not a few years ago. The site has a ton of hard coded html tables with some inline css styles embedded. Using a plugin for mobile theme it doesn’t like the html tables and the content runs off the page. Wptouch has great shortcodes but it will kill me to add the shortcode before and after every table, td, tr, tags.
I tried the php to strip html tags and would like to replace them with echo <p> or
<div>.This is what I’m using:
<div class="<?php wptouch_content_classes(); ?>"> <?php wptouch_the_content(); echo strip_tags('<p>'); ?> </div>
Is this possible?
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Stripping table tags in content’ is closed to new replies.