/*! * markdown-it-regexp * Copyright (c) 2014 Alex Kocharin * MIT Licensed */ /** * Escape special characters in the given string of html. * * Borrowed from escape-html component, MIT-licensed */ exports.escape = function(html) { return String(html) .replace(/&/g, '&') .replace(/"/g, '"') .replace(/'/g, ''') .replace(//g, '>'); };