Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[F] url with brackets [C-Michael83]
#11
A user had an idea that could be a workaround for this issue: We could add an additional regex so that you can use quotation marks inside the url tags:
[url="http://www.example.com/index.php?artikel[id]=10"]Linktitel[/url]
        $standard_mycode['url_bracket']['regex'] = "#\[url=\"([a-z]+?://)(.+?)\"\](.+?)\[/url\]#esi";
        $standard_mycode['url_bracket']['replacement'] = "\$this->mycode_parse_url(\"$1$2\", \"$3\")";

        $standard_mycode['url_bracket2']['regex'] = "#\[url=\"(.+?)\"\](.+?)\[/url\]#esi";
        $standard_mycode['url_bracket2']['replacement'] = "\$this->mycode_parse_url(\"$1\", \"$3\")"; 
Greets,
Michael
-------------
[Image: donation_drive_sig.png]


Forum Jump:


Users browsing this thread: 1 Guest(s)