Changeset 21768

Show
Ignore:
Timestamp:
08.03.2010 14:55:00 (10 years ago)
Author:
ak19
Message:

Removing the Doc and Sec opening and closing tags, since they interfere with the validity of the html pages output (also cases of unevenly matched tags noticed).

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/src/java/org/greenstone/gsdl3/service/GS2MGPPRetrieve.java

    r16355 r21768  
    110110            } 
    111111             
     112        // remove the <Doc></Doc> and <Sec></Sec> tags 
     113        //doc_content = doc_content.replace("<Doc>", "").replace("</Doc>", "").replace("<Sec>", "").replace("</Sec>", ""); 
     114        doc_content = doc_content.replaceAll("</?(Doc|Sec)>", ""); 
    112115        } catch (Exception e) { 
    113116            logger.info("exception happended with mgpp_src.getDocument()" + e);