Changeset 11445 for trunk/gsdl


Ignore:
Timestamp:
2006-03-21T14:59:18+12:00 (18 years ago)
Author:
mdewsnip
Message:

Now escapes '&' in xml_safe too.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/recpt/gtiaction.cpp

    r11372 r11445  
    496496  text_t::const_iterator end = text_string.end();
    497497  while (here != end) {
    498     if (*here == '<') text_string_safe += "&lt;";
     498    if (*here == '&') text_string_safe += "&amp;";
     499    else if (*here == '<') text_string_safe += "&lt;";
    499500    else if (*here == '>') text_string_safe += "&gt;";
    500501    else text_string_safe.push_back(*here);
Note: See TracChangeset for help on using the changeset viewer.