Logo white

Peter M. Groen / knowledgetree

Sign in
  • Sign in
  • Project
  • Files
  • Commits
  • Network
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • knowledgetree
  • search2
  • indexing
  • extractors
  • XMLExtractor.inc.php
  • KTS-673 ...
    707f8542
    "The search algorithm needs some work"
    Implemented. 
    
    Committed By: Conrad Vermeulen
    Reviewed By: Kevin Fourie
    
    git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@7144 c91229c3-7414-0410-bfa2-8a42b809f60b
    conradverm authored
    2007-09-18 21:30:02 +0000  
    Browse Code ยป
XMLExtractor.inc.php 333 Bytes
Edit Raw Blame History
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
<?php

class XMLExtractor extends TextExtractor
{
	public function getDisplayName()
	{
		return _kt('XML Text Extractor');
	}

	public function getSupportedMimeTypes()
	{
		return array('text/xml','application/xml','text/html');
	}

	protected function filter($text)
	{
		 return preg_replace ("@(</?[^>]*>)+@", " ", $text);
	}
}

?>