Magento Media URL stripping all forward slashes -


on dev box have noticed in text attributes media encased urls eg:

<img src="{{media url="wysiwyg/diagram/bigpool.jpg"}}"/> 

are being displayed on front end

<img src="{{media url="wysiwyg diagram bigpool.jpg"}}"/> 

and breaking image links. playing around {{skin url & {{ base url yields same results. urls outside of working fine.

to clarify saving correctly in database (with slashes) rendering in browser without breaking image.

i've hardcoded url without {{media url=""}} , render fine.

has run problem before or ideas on causing this? google , se not being helpful!

the dev box running nginx, hhvm & magento ce 1.9.2

cheers.

share|improve question

you can use below code

<?php  $string='<img src="{{media url="wysiwyg diagram bigpool.jpg"}}"/>'; echo $this->helper('cms')->getblocktemplateprocessor()->filter($string) ?> 

this display proper image want.

share|improve answer
    
hey slimbeez, maybe didn't make clear in original post. it's saving database correctly stripping slashes in browser render. – dvdsndr aug 27 '15 @ 4:19
    
i had same issue @dvdsndr had. strange thing site using out of box logic echoing product description. rather dig why have stopped working switched product description output using block template processor , works fine. – meogi sep 23 '16 @ 14:43

your answer

 
discard

posting answer, agree privacy policy , terms of service.

not answer you're looking for? browse other questions tagged or ask own question.

Comments