src/html-amend.js
function insertComment(input, element, comment) {
            // Sanity check
            verifyParameterIsDefined(input, 'input', insertComment.name);
            verifyParameterIsDefined(element, 'element', insertComment.name);

            return insertAfter(normalizeValue(input), normalizeRegExp(`<\/${normalizeValue(element)}[^\>]*>`), `/* ${normalizeValue(comment)} */`);
        }
function insertComment(input, element, comment) {
            // Sanity check
            verifyParameterIsDefined(input, 'input', insertComment.name);
            verifyParameterIsDefined(element, 'element', insertComment.name);

            return insertAfter(normalizeValue(input), normalizeRegExp(`<\/${normalizeValue(element)}[^\>]*>`), `/* ${normalizeValue(comment)} */`);
        }
function insertComment ( input , element , comment ) { // Sanity check verifyParameterIsDefined ( input , 'input' , insertComment . name ) ; verifyParameterIsDefined ( element , 'element' , insertComment . name ) ; return insertAfter ( normalizeValue ( input ) , normalizeRegExp ( ` \/ ${ normalizeValue ( element ) } \> ` ) , ` ${ normalizeValue ( comment ) } ` ) ; }
Inserts an HTML comment into the input string after the first occurrence of the element close tag.

@param {String|Function} input the input to replace
@param {String|Function} element the element to add the comment after
@param {String|Function} [content] the comment to add.
@return {String} a String which has the comment added after the first occurrence of the element close tag within the input string
@throws {String} when input or element are not defined
Inserts an HTML comment into the input string after the first occurrence of the element close tag .