+ Reply to Thread
Results 1 to 3 of 3

Thread: creating no-linebreak no-html description field

  1. #1
    Senior Member
    Join Date
    Dec 2023
    Posts
    161

    creating no-linebreak no-html description field

    I'd like to include the description in my featured box, but strip html tags and linebreaks for my featured content box.

    I'd like to do something like the following, but am not sure what the correct syntax would be.

    Any tips on how I would correct this php/smarty to strip html tags and then output the plaintext-description in featured-item.tpl
    Code:
    Only registered members can view the code.

  2. #2
    Flynax developer Rudi's Avatar
    Join Date
    Dec 2014
    Location
    Planet Earth
    Posts
    3,174
    Try to use {$plaintext-description|strip_tags}

  3. #3
    Senior Member
    Join Date
    Dec 2023
    Posts
    161
    Thank you Rudi! You are most awesome!

+ Reply to Thread