This product looks great but can i set it to not ignore whitespace? I've got an attribute with the text:
User
Group
Job Profile
Skill
Objectives
Accreditation
Equipment
Training Session
Training Course
Training Program
Course Catalogue
Document
Report
News items
All other software i've tried just ignores the white space so it appears wrong.
Thanks,
Mark
Hello Mark,
Magic Parser will not be ignoring the white space, you are simply not seeing it because web browsers do not display any more than 1 space character.
The Parser will always return to your record handler function exactly what is in the fields, nothing is removed.
If you then want to display content that has white space on an HTML page, there are 2 things you can do. You can either display your content within <PRE> tags, or convert the spaces to the HTML entity for a space which is (non-braking space) using the htmlentities() function, for example:
print htmlentities($record["FOO"]);
Hope this helps!
Cheers,
David.