<p> This is the second line.<br\> This is the second line. 我想要删除标签,并想得到类似First line of output. This is the second line.的输出。我尝试用空格替换\n,\r\n,但没有任何变化。我该怎么解决它呢?
最终目标是从包含只捕获内联JS的HTML标记的字符串中剥离所有HTML标记等。在正在测试的代码段中,只有一个内联JavaScript。我希望有一个Regex删除任何HTML标记,除了那些包含在引号内的标记(‘或"),其中可能有或可能没有换行符。<!-- BLOGHER ADS Begin supplemental 970 ad -->
<script src='http://ads.blogherads.com/97/9737&