The data returned by Mini Program through Filter is tagged with text and rendered on the page without parsing.

res.data.content.filter((value) => {
                value.createAt = util.formatTimeDistance(new Date(value.createAt));
                let keyword = that.data.params;
                let re = new RegExp(keyword, "g");
                value.title = value.title.replace(re, `<text class="keyword">${keyword}</text>`);
                return value
              })

as above, I added Filter and added a text tag to the title that contains keyword, but what if the page doesn"t render?

clipboard.png

Apr.07,2021

if you want to change the style, use rich-text as a rich text to render

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-1b40df4-2c550.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-1b40df4-2c550.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?