Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.

Search found 3 matches
Smarty Forum Index
Author Message
  Topic: stripcslashes and parse_double_quoted_string causing issues
chu_man_fu

Replies: 4
Views: 2989

PostForum: Smarty 3   Posted: Mon Sep 17, 2018 2:23 pm   Subject: stripcslashes and parse_double_quoted_string causing issues
Thanks for your reply and sample code.
We did have this idea as a backup but we didn't know if there was a way of stopping the slashes stripping.
  Topic: stripcslashes and parse_double_quoted_string causing issues
chu_man_fu

Replies: 4
Views: 2989

PostForum: Smarty 3   Posted: Fri Sep 14, 2018 7:35 am   Subject: stripcslashes and parse_double_quoted_string causing issues
Sure

test.conf:


testvar = "FirstLine\nSecondLine"


test.tpl:


{config_load file="test.conf"}
<html>
<head>
<meta http-equiv="Conten ...
  Topic: stripcslashes and parse_double_quoted_string causing issues
chu_man_fu

Replies: 4
Views: 2989

PostForum: Smarty 3   Posted: Thu Sep 13, 2018 8:24 pm   Subject: stripcslashes and parse_double_quoted_string causing issues
I am currently in the process of migrating from Smarty 2 to Smarty 3.
Everything was going great until I walked into an issue with \n characters breaking my Javascript.

I have a language config va ...
 
Page 1 of 1
All times are GMT
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP