Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

queries on the STRIP command.

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General
View previous topic :: View next topic  
Author Message
sarahfoxnz
Smarty Regular


Joined: 11 Apr 2010
Posts: 76

PostPosted: Mon Oct 22, 2018 12:06 am    Post subject: queries on the STRIP command. Reply with quote

Hi, I use the strip command at various times, it is quite useful to reduce long HTML code into one long paragraph (if Ive confirmed it is 100% correct - I can then concentrate on my other HTML code to debug any issues. )

Q1. I guess the strip command cant be used on JavaScript - or any code with comments ?(I usually leave JavaScript as it is, or use LITERAL.

Q2. I am wondering - is there another Smarty command that will remove blank lines, but will not make it into one long paragraph.

IE so i can reduce the vertical display of any html source code, but if i have a code on a 2nd/3rd line etc it will keep it on the new line - but remove any blank lines.

is there such an option ?
Back to top
View user's profile Send private message
AnrDaemon
Administrator


Joined: 03 Dec 2012
Posts: 1785

PostPosted: Mon Oct 22, 2018 12:04 pm    Post subject: Reply with quote

Use browser dev. tools. They do exactly that.
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General All times are GMT
Page 1 of 1

 
Jump to:  
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
Protected by Anti-Spam ACP