Categories > TinyButStrong general >

Can I find and replace something in a variable?

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: desbest
Date: 2010-11-19
Time: 03:21

Can I find and replace something in a variable?

Can I find and replace something in a variable?
JW Player requires the & inside a file name to be url encoded.
However when I urlencode a tinybutstrong variable of a file name using the "htmlconv;url" parameter, the & does not change to %3F
Can this be achieved?
By: Skrol29
Date: 2010-11-19
Time: 09:26

Re: Can I find and replace something in a variable?

Hi Desbest,

"htmlconv=url" does replace '&' with '%26'.
'%3F' is for '?'

In fact "htmlconv=url" calls the PHP function url_encode().