Encode special attribute characters to HTML entities in a String. * @private
(str)
| 19 | * @private |
| 20 | */ |
| 21 | function encodeAttr(str) { |
| 22 | return (str+'').replace(/"/g, '"').replace(/</g, '<').replace(/>/g, '>'); |
| 23 | } |
| 24 | |
| 25 | /** Parse Markdown into an HTML String. */ |
| 26 | export default function parse(md, prevLinks) { |
no outgoing calls
no test coverage detected
searching dependent graphs…