# Checks for missing encoding when concatenating HTML strings (require-encode) Wanted a way to catch XSS issues in code before they end up in production. ## Rule Details This rule aims to catch as many XSS issues by examining the code as possible. The rule checks for mixed html/non-html content, unescaped input, etc. The following patterns are considered warnings: ```js // Mixed content var x = '
' + input + '
'; $node.html( '
' + input + '
' ); // Unsafe container names. var html = input; var text = htmlInput; displayValue( htmlInput ); // Checking certain expression parameters that might end up in the variables. var htmlItems = [ input1, input2 ].join(); var textItems = [ '
', input, '
' ].join(); var tag = isNumbered ? '
    ' : '