before_match
和after_match
?我不希望任何内容环绕匹配的文本。
SNIPPET(field, 'word', 'after_match=""', 'before_match=""')
我已尝试after_match=""
,但这会向匹配项添加原义引号。
我已尝试after_match=''"
但失败
我已尝试after_match=
,但也失败
有什么建议吗?
我唯一的建议是将其设置为一些无害的字符串,然后在POST中删除。'after_match=*'
然后可以做<?php $str = str_replace('*','',$str);
之类的事情。
或仅使用strip_tags
样式函数删除自动
<b>...</b>
:)