for (i = 0; chr != '\0' ; i++, chr = content[i]) {
switch (chr) {
- case '#':
- writer.text (content.substring (lpos, i-lpos));
- writer.simple_tag ("#");
+ case '<':
+ writer.raw_text (content.substring (lpos, i-lpos));
+ writer.raw_text ("<");
lpos = i+1;
break;
- case '%':
- writer.text (content.substring (lpos, i-lpos));
- writer.simple_tag ("%");
+
+ case '>':
+ writer.raw_text (content.substring (lpos, i-lpos));
+ writer.raw_text (">");
lpos = i+1;
break;
- case '@':
- writer.text (content.substring (lpos, i-lpos));
- writer.simple_tag ("@");
+
+ case '"':
+ writer.raw_text (content.substring (lpos, i-lpos));
+ writer.raw_text (""");
lpos = i+1;
break;
- case '(':
- writer.text (content.substring (lpos, i-lpos));
- writer.simple_tag ("(");
+
+ case '\'':
+ writer.raw_text (content.substring (lpos, i-lpos));
+ writer.raw_text ("'");
lpos = i+1;
break;
- case ')':
- writer.text (content.substring (lpos, i-lpos));
- writer.simple_tag (")");
+
+ case '&':
+ writer.raw_text (content.substring (lpos, i-lpos));
+ writer.raw_text ("&");
lpos = i+1;
break;
- case '"':
- writer.text (content.substring (lpos, i-lpos));
- writer.simple_tag (""");
+
+ case '#':
+ writer.raw_text (content.substring (lpos, i-lpos));
+ writer.raw_text ("#");
lpos = i+1;
break;
- case '\n':
- writer.text (content.substring (lpos, i-lpos));
- writer.simple_tag ("br");
+
+ case '%':
+ writer.raw_text (content.substring (lpos, i-lpos));
+ writer.raw_text ("%");
lpos = i+1;
break;
- case '<':
- writer.text (content.substring (lpos, i-lpos));
- writer.text ("<");
+
+ case '@':
+ writer.raw_text (content.substring (lpos, i-lpos));
+ writer.raw_text ("@");
lpos = i+1;
break;
- case '>':
- writer.text (content.substring (lpos, i-lpos));
- writer.text (">");
+
+ case '(':
+ writer.raw_text (content.substring (lpos, i-lpos));
+ writer.raw_text ("(");
lpos = i+1;
break;
- case '&':
- writer.text (content.substring (lpos, i-lpos));
- writer.text ("&");
+
+ case ')':
+ writer.raw_text (content.substring (lpos, i-lpos));
+ writer.raw_text (")");
+ lpos = i+1;
+ break;
+
+ case '\n':
+ writer.raw_text (content.substring (lpos, i-lpos));
+ writer.simple_tag ("br");
lpos = i+1;
break;
}
}
- writer.text (content.substring (lpos, i-lpos));
+
+ writer.raw_text (content.substring (lpos, i-lpos));
}
public void append_since (Gee.List<Content.Taglet> taglets) {