Skip to content

Commit

Permalink
Fix content clickable when having attriutes with < inside
Browse files Browse the repository at this point in the history
  • Loading branch information
renatho committed Oct 28, 2024
1 parent be9762c commit 61a36fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion projects/plugins/wpcomsh/wpcomsh.php
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ function wpcomsh_make_content_clickable( $content ) {
// don't look in <a></a>, <pre></pre>, <script></script> and <style></style>
// use <div class="skip-make-clickable"> in support docs where linkifying
// breaks shortcodes, etc.
$_split = preg_split( '/(<[^<>]+>)/i', $content, -1, PREG_SPLIT_DELIM_CAPTURE );
$_split = preg_split( '/(<[^>]+>)/i', $content, -1, PREG_SPLIT_DELIM_CAPTURE );
$end = '';
$out = '';
$combine = '';
Expand Down

0 comments on commit 61a36fa

Please sign in to comment.