WordPress.org

Ready to get started?Download WordPress

Forums

FireStorm Professional Real Estate Plugin
[resolved] Break tags beiing added to unordered lists. (2 posts)

  1. krawe
    Member
    Posted 1 year ago #

    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/

  2. krawe
    Member
    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.