RegEx to remove carriage returns between

tags

前端 未结 7 608
臣服心动
臣服心动 2021-01-07 07:57

I\'ve stumped myself trying to figure out how to remove carriage returns that occur between

tags. (Technically I need to replace them with spaces, not

7条回答
  •  感动是毒
    2021-01-07 08:45

    The standard answer is: don't try to process HTML (or SGML or XML) with a regex. Use a proper parser.

提交回复
热议问题