I have a text/string of:
{{some.variable}}
How can I remove all of br and p tags from this text with regex in php? It's very complicated to me, so I had to ask. My code in short:
TypeError: Cannot read property 'errorMobile' of undefined
at new <anonymous> (controllers.js:87)
at invoke (angular.js:2880)
at Object.instantiate (angular.js:2890)
at $get (angular.js:5178)
at update (angular.js:15668)
at Object.$get.Scope.$broadcast (angular.js:8935)
at angular.js:7960
at deferred.promise.then.wrappedCallback (angular.js:7303)
at deferred.promise.then.wrappedCallback (angular.js:7303)
at angular.js:7340
(anonymous function) @ angular.js:6173
$get @ angular.js:5219$get.Scope.$broadcast @ angular.js:8937
(anonymous function) @ angular.js:7960
deferred.promise.then.wrappedCallback @angular.js:7303
deferred.promise.then.wrappedCallback @ angular.js:7303
(anonymous function) @ angular.js:7340
$get.Scope.$eval @ angular.js:8685
$get.Scope.$digest @ angular.js:8548
$get.Scope.$apply @ angular.js:8771
done @ angular.js:10004
completeRequest @ angular.js:10180
xhr.onreadystatechange @ angular.js:10144
答案 0 :(得分:0)
You don't need a regexp to do this, you can do it with a simple find and replace:
#dd7{
...
width: 5%;
}