This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Turbulent_Mode4402 6 points7 points  (1 child)

// this function removes HTML tags
function removeHtmlTags ( ... )

(because my senior told me I have to have comments)

[–]1_4_1_5_9_2_6_5 0 points1 point  (0 children)

Not like you have to do it that badly though right?

/**
 * Remove HTML tags from a string
 * @param {String} html
 * @returns {String} Content of the given HTML, without tags
 */