The original database stores all html-format articles. How can I convert them to markdown format and save them back? Some of the html-to-markdown php classes found are not performing well and cannot be parsed. For example, the alttitle bit replacement of & amp; lt; img & amp; gt; won't be converted. Javascript is better than php, and the original database stores all html-format articles. How can I convert it to markdown format and save it back?
Some of the html-to-markdown php classes found are not performing well and cannot be parsed. For example, the alt/title bit replacement won't be converted.
Js is better than php, but js must be read to the browser and then submitted to the database in the browser. If it is JavaScript, the idea is as follows:
After reading the result, the js variable is output to $iner.html (js variable)
Read $ container. text () again and submit it to the database.
In this way, we mainly consider/
/All filtered
Is there any simpler or better tool?
Reply content:
The original database stores all html-format articles. How can I convert them to markdown format and save them back?
Some of the html-to-markdown php classes found are not performing well and cannot be parsed. For example, the alt/title bit replacement won't be converted.
Js is better than php, but js must be read to the browser and then submitted to the database in the browser. If it is JavaScript, the idea is as follows:
After reading the result, the js variable is output to $iner.html (js variable)
Read $ container. text () again and submit it to the database.
In this way, we mainly consider/
/All filtered
Is there any simpler or better tool?
Https://domchristie.github.io/to-markdown/
Markdown can use html code. (Of course, some do not support the parser.
If you have obsessive-compulsive disorder, you should not say so.
The markdown rule is simple. You can write a program on your own.