Forum Discussion
User notes that they can print and email
It really isn't that strange. The printable page is being rendered through HTML. In HTML, some characters are 'Reserved'. For example the less than (<) & greater than (>) signs are used to open and close tags and so the browser might be confused by their use as pure text. Therefore, special characters have an assigned 'entity' that you can use to display them. Character entities look like this:
&entity_name; or &#entity_number;
Note that character entities always start with the ampersand (&) which makes it one of these special characters that html treats differently. The correct way to display an ampersand in html is to use & or &
Line breaks are similar. In HTML they require a specific element which is written as: <br>.
StoryLine, on the other hand, is recording your actual text entry and holding it in a variable (that acts like a container). It has captured and recorded '&' as '&' and not as '&'. When you try to take text stored this way in it's native format and render it in html, it is not unlike trying to put a square peg in a round hole. You need to make some changes first.
Sometimes, it is easier to change your methodology. For example, instruct users to add their notes 1 paragraph at a time and capture each paragraph in it's own variable. Or run JS 'when the user presses a key (enter) to capture what they have input so far and add the appropriate html line break characters to a different variable to be used when printing.
Related Content
- 9 months ago
- 7 months ago
- 8 months ago
- 9 months ago
- 12 months ago