// ----------------------------------------------------------------------------
// headers
// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------
// headers
// ----------------------------------------------------------------------------
// See here for the used table: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/xmlsql/ac_xml1_1nqk.asp
/* static */ void wxSimpleHtmlParser::DecodeSpecialChars(wxString &value)
{
// See here for the used table: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/xmlsql/ac_xml1_1nqk.asp
/* static */ void wxSimpleHtmlParser::DecodeSpecialChars(wxString &value)
{
value.Replace(wxT(">"), wxT(">"), true);
value.Replace(wxT("<"), wxT("<"), true);
value.Replace(wxT("""), wxT("\""), true);
value.Replace(wxT(">"), wxT(">"), true);
value.Replace(wxT("<"), wxT("<"), true);
value.Replace(wxT("""), wxT("\""), true);
newvalue.Replace(wxT("&"), wxT("&"), true); // Note: do this as first to prevent replace problems.
newvalue.Replace(wxT(">"), wxT(">"), true);
newvalue.Replace(wxT("<"), wxT("<"), true);
newvalue.Replace(wxT("\""),wxT("""), true);
newvalue.Replace(wxT("'"), wxT("'"), true);
newvalue.Replace(wxT("&"), wxT("&"), true); // Note: do this as first to prevent replace problems.
newvalue.Replace(wxT(">"), wxT(">"), true);
newvalue.Replace(wxT("<"), wxT("<"), true);
newvalue.Replace(wxT("\""),wxT("""), true);
newvalue.Replace(wxT("'"), wxT("'"), true);
wxSimpleHtmlTag* wxSimpleHtmlTag::FindTag(const wxString& tagName, const wxString& attrName)
{
wxSimpleHtmlTag* tag = m_next;
wxSimpleHtmlTag* wxSimpleHtmlTag::FindTag(const wxString& tagName, const wxString& attrName)
{
wxSimpleHtmlTag* tag = m_next;