How does js use regular to clear the style of a table, leaving only the contents?

Aug.04,2021

should not clear the format, but convert it to html display. It must be ugly when you display text now


Please post a copy of your data. Let me see
and what you said is to keep only the content. To what extent is this retained?

for example: < td style= "xxx" > 1 > < / td >
do you want to keep tags or only 1?

try the following code:

var str = '<td style="font-size:12px;" height=18 span=2 face=>123</td>';
str.replace(/\s*[a-z]+=[^\s>]+/ig,'')

cheerio


to be clear alone, style, can try the following:

</TABLE>'.replace( reg , '');
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e64032-27fb1.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e64032-27fb1.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?