💄 参照 anno 美化 post

This commit is contained in:
BTMuli
2023-06-16 17:15:22 +08:00
parent 029377b3cf
commit bd75cc432c
4 changed files with 44 additions and 14 deletions

View File

@@ -14,7 +14,7 @@ import { saveImgLocal } from "../../utils/TGShare";
* @param {string} data 游戏内公告数据
* @returns {Promise<string>} 解析后的数据
*/
export async function parseAnnoContent(data: string): Promise<string> {
export async function parseAnnoContent (data: string): Promise<string> {
const htmlBase = new DOMParser().parseFromString(data, "text/html");
htmlBase.querySelectorAll("span").forEach((span) => {
if (span.style.fontSize) {