Project

General

Profile

« Previous | Next » 

Revision 49488

Quote quotes when writing descriptions and labels

View differences:

FacetWriter.java
194 194

  
195 195
	protected String getDescriptionFromRDFResource(final Resource resource) {
196 196
		if (resource.hasProperty(CRM.P3_has_note)) {
197
			return resource.getProperty(CRM.P3_has_note).getString();
197
			return resource.getProperty(CRM.P3_has_note).getString().replace('"', '\"');
198 198
		} else return "";
199 199
	}
200 200

  
201 201
	protected String getLabelFromRDFResource(final Resource resource) {
202 202
		if (resource.hasProperty(RDFS.label)) {
203
			return resource.getProperty(RDFS.label).getString();
203
			return resource.getProperty(RDFS.label).getString().replace('"', '\"');
204 204
		} else return "";
205 205
	}
206 206

  

Also available in: Unified diff