I am developing a website using RainTPL 3. I need to pass recaptcha_get_html($publickey)
created HTML data to the tpl file and display it. But when pass this value using RainTPL variable, it receive in the TPL page as string. Not as HTML. Is there any way to pass HTML in RainTPL?
the output which I am getting in HTML page is where it supposed to give the output as captcha
<script type="text/javascript" src="http://www.google.com/recaptcha/api/challenge?k=myKey"></script> <noscript> <iframe src="http://www.google.com/recaptcha/api/noscript?k=myKey" height="300" width="500" frameborder="0"></iframe><br/> <textarea name="recaptcha_challenge_field" rows="3" cols="40"></textarea> <input type="hidden" name="recaptcha_response_field" value="manual_challenge"/> </noscript>
I added the answer in a comment above. To find the answer easily, adding it here.
The issue which I found was auto_escape
option was enabled by default. It will send the HTML as a string to the page. To avoid this behavior, disable auto_escape` by adding
auto_escape => false