Changeset 21768


Ignore:
Timestamp:
2010-03-08T14:55:00+13:00 (11 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).

File:
1 edited

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);
Note: See TracChangeset for help on using the changeset viewer.