YanaDH 7 yıl önce
ebeveyn
işleme
587cdc190e

+ 5 - 0
miaomiao/www/js/filters/filter.js

xqd
@@ -80,6 +80,11 @@
             return number;
         };
     });
+    module.filter('trustHtml',['$sce',function($sce){
+        return function (html){
+            return $sce.trustAsHtml(html);
+        };
+    }]);
     module.filter('storeavator', function () {
         return function (input) {
             

+ 1 - 1
miaomiao/www/templates/home/dream-detail.html

xqd
@@ -57,7 +57,7 @@
                 <div class="item" style="padding: 0 16px">
                     <p style="font-size: 17px; color: #000">{{dream.name}}</p>
                     <p style="font-size: 13px;" ng-style="aboutStyle">
-                        {{dream.about}}
+                        <!--{{dream.about | trustHtml}}-->
                     </p>
                     <div style="text-align: center">
                         <i class="icon ion-chevron-down" ng-if="showAbout" ng-style="aboutStyle" style="color: #00C3DA;" ng-click="showText()"></i>