1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.5 filter other bbcode in custom bbcode text

Discussion in 'Styling and Customization Questions' started by ungovernable, Feb 16, 2016.

  1. ungovernable

    ungovernable Active Member

    I have a [DL] BBCode i'm using to display a special formatting when users want to add an external download link

    The problem is that sometimes the user will copy a download link URL from a website which already embbed it in a link. So the URL will be pasted in XenForo text editor as a link, thus breaking my custom bbcode, resulting in something like
    My bbcode looks like:
    Is there a way to prevent this ?

    Can i use regex to remove bbcode tags ? If i understand correctly the regex option is just to validate the input, so no solution for my problem ?
    Last edited: Feb 17, 2016

Share This Page