WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Break tags beiing added to unordered lists.

[Resolved] Break tags beiing added to unordered lists.

  • I am adding a listing using the plugin, and for some reason
    tags are being added by the listing engine to my unordered lists.

    <h2>Description</h2><p><ul><br />
    	<li>Item One<br />
    <ul><br />
    	<li>Item two...</li><br />
    	<li>Item Three...</li><br />
    </ul><br />

    It seems like it’s adding a break tag to just about every line of code from what I can see when I do a view source. Can I get rid of this? It’s kind of a pain. Thanks…

    http://wordpress.org/extend/plugins/fs-real-estate-plugin/

Viewing 1 replies (of 1 total)
  • I found it, in case anyone happens across this thread and is having the same problem. Line 63 contains this line:

    $PageContent .= '<p>'.stripslashes(nl2br($ListingDetails->listing_description)).'</p>';

    remove the nl2br function. This is adding the breaks. Then your code will look like this:

    $PageContent .= '<p>'.stripslashes($ListingDetails->listing_description).'</p>';

    And you will have it fixed.

Viewing 1 replies (of 1 total)
  • The topic ‘[Resolved] Break tags beiing added to unordered lists.’ is closed to new replies.