Proposed feature : preserve links
-
It would be great if this plugin could preserve links from HTML.
Example?:
<a >my website</a>
becomes in plain text?:
my website (https://mywebsite.tld)
Here is a line of code to do this?:
+ // preserve links into brackets + $text = preg_replace( '@<a .*href="(.*)".*>(.*)</a>@iu', "\$2 (\$1)", $text ); + // strip all remaining HTML tags $text = strip_tags( $text );
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Proposed feature : preserve links’ is closed to new replies.