pc035860 / angular-highlightjs

AngularJS directive for syntax highlighting with highlight.js
http://pc035860.github.io/angular-highlightjs/example/
MIT License
294 stars 53 forks source link

Preserve br tags #57

Closed NetanelBasal closed 8 years ago

NetanelBasal commented 8 years ago

I have br tags in my string, and I want them to be a real br and not show them in the code, how can I do this?

pc035860 commented 8 years ago

Hi, if you're using hljs-source for the highlighting, you can just pragmatically remove replace those br tags with newline character I think. Netanel notifications@github.com於 2016年1月14日 週四,下午3:10寫道:

I have br tags in my string, and I want them to be a real br and not show them in the code, how can I do this?

— Reply to this email directly or view it on GitHub https://github.com/pc035860/angular-highlightjs/issues/57.

pc035860 commented 8 years ago

Before you through the source into hljs-source. Chih-Hsuan Fan pc035860@gmail.com於 2016年1月15日 週五,上午10:16寫道:

Hi, if you're using hljs-source for the highlighting, you can just pragmatically remove replace those br tags with newline character I think. Netanel notifications@github.com於 2016年1月14日 週四,下午3:10寫道:

I have br tags in my string, and I want them to be a real br and not show them in the code, how can I do this?

— Reply to this email directly or view it on GitHub https://github.com/pc035860/angular-highlightjs/issues/57.