- if (cel != NULL && tag.HasParam(wxT("HREF")))
- {
- wxString target;
- if (tag.HasParam(wxT("TARGET")))
- target = tag.GetParam(wxT("TARGET"));
- cel->SetLink(wxHtmlLinkInfo(tag.GetParam(wxT("HREF")), target));
- }
+ wxString href;
+ if (cel != NULL && tag.GetParamAsString(wxT("HREF"), &href))
+ cel->SetLink(wxHtmlLinkInfo(href, tag.GetParam(wxT("TARGET"))));