- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for afterSanitizeAttributes (0.07 seconds)
-
src/main/webapp/js/purify.min.js
N){const e=r.createElement("template");e.content&&e.content.ownerDocument&&(r=e.content.ownerDocument)}let le,ce="";const{implementation:se,createNodeIterator:ue,createDocumentFragment:me,getElementsByTagName:pe}=r,{importNode:fe}=a;let de={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};o.isSupported="function"==typeof...Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sun Mar 15 06:21:57 GMT 2026 - 22.7K bytes - Click Count (0) -
src/main/webapp/js/chat.js
// Register hook once: add rel="nofollow" to links, restrict class to code/pre/span/div // (matches server-side requireRelNofollowOnLinks and allowAttributes("class").onElements(...)) DOMPurify.addHook('afterSanitizeAttributes', function(node) { if (node.tagName === 'A' && node.hasAttribute('href')) { node.setAttribute('rel', 'nofollow'); } if (node.hasAttribute('class')) {
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Mar 19 01:36:02 GMT 2026 - 30.6K bytes - Click Count (0)