lunargorge / ng2-handy-syntax-highlighter

Native Angular 2/4/5 component for Prismjs
http://highlighter.diamondtower.pl/
MIT License
3 stars 2 forks source link

apostrophe in the code I get this error #4

Closed physedo closed 5 years ago

physedo commented 6 years ago

When you have apostrophe in the code I get this error

title('Title') ` <handy-syntax-highlighter [language]="'matlab'" [content]="'

xm=0:0.01:10;

ym=polyval(m,xm);

plot(xm,ym)

title('Titel')

'" > `

` Error: Template parse errors: Parser Error: Unexpected token 'Titel' at column 63 in ['

xm=0:0.01:10;

ym=polyval(m,xm);

plot(xm,ym)

title('Titel')

'] in ng:///AppModule/HomePage.html@15:50 ("

<handy-syntax-highlighter [language]="'matlab'" [ERROR ->][content]="'

xm=0:0.01:10; "): ng:///AppModule/HomePage.html@15:50 Parser Error: Unexpected token 'Titel' at column 63 in ['

xm=0:0.01:10;

ym=polyval(m,xm);

plot(xm,ym)

title('Titel') `