Close open HTML tags in a string

后端 未结 9 1968
南方客
南方客 2020-11-28 11:21

Situation is a string that results in something like this:

This is some text and here is a bold text then the post stop here....

9条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-11-28 11:53

    There are numerous other variables that need to be addressed to give a full solution, but are not covered by your question.

    However, I would suggest using something like HTML Tidy and in particular the repairFile or repaireString methods.

提交回复
热议问题