@@ -776,35 +776,35 @@ public function testHtmlInsideJavaScriptTemplates()
776
776
777
777
public function testOverwriteSpecialScriptTags ()
778
778
{
779
- $ html = " <!doctype html>
780
- <html lang= \" nl \" >
781
- <head >
782
- </head>
779
+ $ html = <<<HTML
780
+ <!doctype html >
781
+ <html lang="nl" >
782
+ <head>< /head>
783
783
<body>
784
- <script type= \ "text/x-custom \ ">
785
- <ul class= \ "prices-tier items \ ">
784
+ <script type="text/x-custom">
785
+ <ul class="prices-tier items">
786
786
<% _.each(tierPrices, function(item, key) { %>
787
- <% var priceStr = '<span class= \ "price-container price-tier_price \ ">'
788
- + '<span data-price-amount= \ "' + priceUtils.formatPrice(item.price, currencyFormat) + ' \ "'
789
- + ' data-price-type= \"\ "' + ' class= \ "price-wrapper \ ">'
790
- + '<span class= \ "price \ ">' + priceUtils.formatPrice(item.price, currencyFormat) + '</span>'
787
+ <% var priceStr = '<span class="price-container price-tier_price">'
788
+ + '<span data-price-amount="' + priceUtils.formatPrice(item.price, currencyFormat) + '"'
789
+ + ' data-price-type=" "' + ' class="price-wrapper ">'
790
+ + '<span class="price">' + priceUtils.formatPrice(item.price, currencyFormat) + '</span>'
791
791
+ '</span>'
792
792
+ '</span>'; %>
793
- <li class= \ "item \ ">
793
+ <li class="item">
794
794
<%= 'some text %1 %2'.replace('%1', item.qty).replace('%2', priceStr) %>
795
- <strong class= \ "benefit \ ">
796
- save <span class= \ "percent tier-<%= key %> \ "> <%= item.percentage %></span>%
795
+ <strong class="benefit">
796
+ save <span class="percent tier-<%= key %>"> <%= item.percentage %></span>%
797
797
</strong>
798
798
</li>
799
799
<% }); %>
800
800
</ul>
801
801
</script>
802
- <div data-role= \ "tier-price-block \ ">
802
+ <div data-role="tier-price-block">
803
803
<div> Some Content </div>
804
804
</div>
805
805
</body>
806
- </html>" ;
807
-
806
+ </html>
807
+ HTML ;
808
808
$ htmlMin = new voku \helper \HtmlMin ();
809
809
$ htmlMin ->overwriteSpecialScriptTags (['text/x-custom ' ]);
810
810
$ expected = <<<HTML
0 commit comments