Search Options

Display Count
Sort
Preferred Language
Advanced Search

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

The search processing time has exceeded the limit. The displayed results may be partial.

  1. 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