angularjs - Angular filter to add " before and after variable content -


i have following html / angular code:

<blockquote>   {{testimonial.text}} </blockquote> 

how can create filter, named blockquote, add " before , after {{testimonial.text}}?

something like:

{{testimonial.text | blockquote}} 

would render as:

"testimonial text content" 

in opposing current code renders:

testimonial text content 

just create filter adds " on start , end of input:

.filter('blockquote', function() {   return function(value) {     return '"' + value + '"';   } }) 

Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -