Leave final VIP, coupon, surplus and wallet settlement to the native order. Keep document metadata on its own line within the approved usable legacy layout. Bump Fuc to 0.12.4.
6 lines
521 B
JavaScript
6 lines
521 B
JavaScript
import {marked,DOMPurify} from './vendor/richtext.mjs?v=0.12.4';
|
|
export function richText(value) {
|
|
const html=marked.parse(String(value||''),{async:false});
|
|
return '<div data-fuc-richtext>'+DOMPurify.sanitize(html,{ALLOWED_TAGS:['p','br','strong','b','em','i','ul','ol','li','h1','h2','h3','h4','h5','h6','blockquote','code','pre','a','img','table','thead','tbody','tr','th','td','hr','details','summary','div','span'],ALLOWED_ATTR:['href','src','alt','title','colspan','rowspan'],ALLOW_DATA_ATTR:false})+'</div>';
|
|
}
|