pre tag for code blocks in my blog posts. < > ' " and & and I use the result to add a span tag with a class for a paragraph class and image src but not tor a title tag without any attributes. class and src values out outputting twice. It looks like my RegEx is returning an array of 2 matches for each attribute. I wrote another function called matches to convert the array to a string and use that output to write to the DOM but I'm getting an error: line.match is not a function at line 75 of my JS code. Any help or insight into what I'm doing wrong would be greatly appreciated.