249: def to_html()
250: return '' unless @_text
251:
252: text = @_text.strip
253:
254:
255: process_escape_html(text) unless @settings["html"]
256:
257:
258: FORBIDDEN_NUMERIC_ENTITIES.dup.each_pair do | key, rep |
259: text.gsub!(/&##{key};/, glyph[rep])
260: end
261:
262:
263: process_copy_paste_clearing(text) if @settings['copypaste']
264:
265:
266: process_html_entities(text)
267:
268:
269: tags = lift_ignored_elements(text) if @skip_tags
270:
271:
272: process_spacing(text) if @settings["spacing"]
273:
274:
275:
276:
277: process_inches(text) if @settings["inches"]
278:
279:
280: process_quotes(text) if @settings["quotes"]
281:
282:
283: process_laquo(text) if @settings["laquo"]
284:
285:
286: process_compound_quotes(text) if (@settings["quotes"] && @settings["laquo"])
287:
288:
289: process_dash(text) if @settings["dash"]
290:
291:
292: process_emdash(text) if @settings["emdash"]
293:
294:
295: process_plusmin(text) if @settings["+-"]
296:
297:
298: process_degrees(text) if @settings["degrees"]
299:
300:
301: process_phones(text) if @settings["phones"]
302:
303:
304: process_wordglue(text) if @settings["wordglue"]
305:
306:
307: process_dashglue(text) if @settings["dashglue"]
308:
309:
310: process_initials(text) if @settings['initials']
311:
312:
313: process_ellipsises(text) if @settings["wordglue"]
314:
315:
316: process_acronyms(text) if @settings["acronyms"]
317:
318:
319: reinsert_fragments(text, tags) if @skip_tags
320:
321:
322: process_span_instead_of_nobr(text) if @settings["de_nobr"]
323:
324:
325: process_raw_output(text) if @settings["raw_output"]
326:
327: text.strip
328: end