mirror of
https://github.com/wassname/side-by-side.git
synced 2026-09-09 11:34:24 +08:00
Fix html oversanitization
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
// application scripts
|
||||
script(src="//cdnjs.cloudflare.com/ajax/libs/lodash.js/2.4.1/lodash.js")
|
||||
script(src="//cdnjs.cloudflare.com/ajax/libs/angular.js/1.2.20/angular.js")
|
||||
script(src="//cdnjs.cloudflare.com/ajax/libs/angular.js/1.2.20/angular-sanitize.js")
|
||||
script(src="//cdnjs.cloudflare.com/ajax/libs/marked/0.3.2/marked.js")
|
||||
script(src="scripts/app.js")
|
||||
script(src="scripts/services/fetch.js")
|
||||
|
||||
@@ -30,7 +30,7 @@ html(ng-app="sideBySide")
|
||||
.version(ng-repeat="heading in headings")
|
||||
.version-padded
|
||||
.version-menu
|
||||
.text {{ heading }}
|
||||
.text(ng-bind-html="heading")
|
||||
|
||||
// verses
|
||||
#content
|
||||
@@ -38,5 +38,5 @@ html(ng-app="sideBySide")
|
||||
.version(ng-repeat="version in verse")
|
||||
.version-padded
|
||||
.version-container
|
||||
.section(ng-hide="version.section == ''") {{ version.section }}
|
||||
.text(ng-bind-html-unsafe="version.text")
|
||||
.section(ng-hide="version.section == ''" ng-bind-html="version.section")
|
||||
.text(ng-bind-html="version.text")
|
||||
|
||||
@@ -1 +1 @@
|
||||
angular.module 'sideBySide', ['sideBySide.controllers']
|
||||
angular.module('sideBySide', ['sideBySide.controllers', 'ngSanitize'])
|
||||
|
||||
Reference in New Issue
Block a user