Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for addHook (0.03 seconds)

  1. src/main/webapp/js/purify.min.js

    ")})),le&&We?le.createHTML(m):m},o.setConfig=function(){Tt(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Fe=!0},o.clearConfig=function(){dt=null,Fe=!1},o.isValidAttribute=function(e,t,n){dt||Tt({});const o=ft(e),r=ft(t);return Ct(o,r,n)},o.addHook=function(e,t){"function"==typeof t&&f(de[e],t)},o.removeHook=function(e,t){if(void 0!==t){const n=m(de[e],t);return-1===n?void 0:d(de[e],n,1)[0]}return p(de[e])},o.removeHooks=function(e){de[e]=[]},o.removeAllHooks=function(){de={afterSanitizeAtt...
    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)
  2. 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');
                }
    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)
Back to Top