我写了一个简短的代码,如下basic 有关Wordpress Codex的说明:
function myshortcode( $atts, $content = null ) {
extract( shortcode_atts( array(
...,
), $atts ) );
return some_html _code_here . $content;
}
当我把[myshortcode]
this
is
a
test
content
[/myshortcode]
在一篇帖子中,我获得了以下输出:this <br />
is <br />
a <br />
test <br />
content <br />
如何避免插入br/标签?