Browse Source

ignore tags inside code block

should fix issue #1041
pull/1445/head
fabrixxm 7 years ago
parent
commit
a98d2ee387
  1. 3
      include/tags.php

3
include/tags.php

@ -37,6 +37,9 @@ function create_tags_from_item($itemid) {
$data = " ".$message["title"]." ".$message["body"]." ".$tags." ";
// ignore anything in a code block
$data = preg_replace('/\[code\](.*?)\[\/code\]/sm','',$data);
$tags = array();
$pattern = "/\W\#([^\[].*?)[\s'\".,:;\?!\[\]\/]/ism";

Loading…
Cancel
Save