Option for type of quote marks when converting HTML
Moderator: kfury77
Forum rules
Please try to follow these guidelines. This will help to receive faster and more accurate response.
Please try to follow these guidelines. This will help to receive faster and more accurate response.
- Check the Support section of the corresponding product first. Chances are you will find your answer there;
- Do not create new topics for already reported problems. Add your comments to the existing topics instead;
- Create separate topic for each problem request. Do NOT post a number of non-related problem reports in a single topic;
- Give your topic a meaningful title. Titles such as "A question," "Bug report" and "Help!" provide others no clue what your message is about;
- Include the version number of the software you are using;
- This is not an official customer support helpdesk. If you need a prompt and official response, please contact our support team directly instead. It may take a while until you receive a reply in the forum;
Option for type of quote marks when converting HTML
I sometimes develop pages visually with WYSIWYG editors to get the basic visual design done quickly, then I open the code for editing and turning it into PHP. Most of the visual editors I have used delimit HTML attributes with double quotation marks, e.g. <img src="pic.jpg">. When using the Convert HTML to PHP function, double quotation marks are automatically used so it results in [ echo " ... <img src="pic.jpg">" ] which of course breaks the PHP code. When converting large blocks of code, it becomes very time consuming to manually change the beginning and ending double quotes to single quotes. Is there any option setting to select single quotation marks for the Convert HTML to PHP function?
- Karlis
- Site Admin
- Posts: 3605
- Joined: Mon Jul 15, 2002 5:24 pm
- Location: Riga, Latvia, Europe
- Contact:
Re: Option for type of quote marks when converting HTML
Actually the double quotes are escaped automatically so you would get echo " ... <img src=\"pic.jpg\">" so there should be no problem.