Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 341208

Summary: HTML symbols names are escaped.
Product: z_Archived Reporter: Alex Dancu <alex.dancu>
Component: MylynAssignee: David Green <greensopinion>
Status: RESOLVED FIXED QA Contact: David Green <greensopinion>
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
mylyn/context/zip none

Description Alex Dancu CLA 2011-03-29 06:52:00 EDT
Build Identifier: mylyn-wikitext-standalone-3.5.0.I20110104-0100

Examples:
&copy; becomes &amp;copy;
&ge; becomes &amp;ge;



Reproducible: Always

Steps to Reproduce:
1.
Using MarkupParser programatically: 
public String toHtml(String textileContent) {
 StringWriter writer = new StringWriter(); 
 HtmlDocumentBuilder builder = new HtmlDocumentBuilder(writer);
 builder.setEmitAsDocument(false);
 MarkupParser parser = new MarkupParser();
 parser.setBuilder(builder);
 parser.setMarkupLanguage(new TextileLanguage());
 parser.parse(textileContent);
		
 return writer.toString();
}
2. If 'textileContent' contains an HTML symbol, like '&ge;';
3. Then the output for '&ge;' is '&amp;ge;'

This doesn't happen using textile reference implementation on http://textile.thresholdstate.com/
Comment 1 David Green CLA 2011-04-04 12:28:32 EDT
Thanks for the great bug report.
Comment 2 David Green CLA 2011-04-05 13:40:30 EDT
fixed
Comment 3 David Green CLA 2011-04-05 13:40:33 EDT
Created attachment 192581 [details]
mylyn/context/zip