|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
gottihh Smarty Rookie
Joined: 07 Feb 2013 Posts: 8
|
Posted: Tue Feb 10, 2015 11:25 am Post subject: Escape inline single quotes |
|
|
Hi,
i need to escape these single quotes (see red and underscored):
<a href="javascript:void(0);" onclick="window.location.href='{url link='module.download'};return false;">
Any ideas?
Thanks
Markus |
|
Back to top |
|
AnrDaemon Administrator
Joined: 03 Dec 2012 Posts: 1785
|
Posted: Tue Feb 10, 2015 10:19 pm Post subject: |
|
|
No, you don't. |
|
Back to top |
|
U.Tews Administrator
Joined: 22 Nov 2006 Posts: 5068 Location: Hamburg / Germany
|
Posted: Wed Feb 11, 2015 4:08 am Post subject: |
|
|
I think you you have an unmatched '. it should be
Code: | <a href="javascript:void(0);" onclick="window.location.href='{url link='module.download'}';return false;"> |
|
|
Back to top |
|
gottihh Smarty Rookie
Joined: 07 Feb 2013 Posts: 8
|
Posted: Wed Feb 11, 2015 9:24 am Post subject: |
|
|
The full tag is:
Code: | <a href="javascript:void(0);" onclick="window.location.href='{url link='module.download'}id_{$aApplicant.apply_user_file}';return false;"> |
So there is the quote you missed U.Tews.
The link works fine but my IDE says "Error" |
|
Back to top |
|
AnrDaemon Administrator
Joined: 03 Dec 2012 Posts: 1785
|
Posted: Wed Feb 11, 2015 10:05 am Post subject: |
|
|
So, your IDE does not understand Smarty tags.
I don't see, how it is a Smarty issue. |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|