Re: [PATCH 1/5] hhctrl.ocx: Add HTML to Unicode parsing capability.

2012-06-11 Thread Erich E. Hoover
On Fri, Jun 8, 2012 at 8:17 AM, Jacek Caban wrote: > ... > I don't know any helper API for that. Writing decoder for HTML-encoded > characters sounds like a good solution. How does something like the attached sound? Erich 0001-hhctrl.ocx-Add-HTML-to-Unicode-parsing-capability.patch Description

Re: [PATCH 1/5] hhctrl.ocx: Add HTML to Unicode parsing capability.

2012-06-11 Thread Erich E. Hoover
On Fri, Jun 8, 2012 at 2:58 AM, Jacek Caban wrote: > ... > Did you test indexes like 'alert("really!?")' ? :) > Seriously, HTMLDocument is not the right tool for the job. I can. Do you have a suggestion for an alternative? Erich

Re: [PATCH 1/5] hhctrl.ocx: Add HTML to Unicode parsing capability.

2012-06-10 Thread Jacek Caban
On 6/8/12 11:18 PM, Erich E. Hoover wrote: On Fri, Jun 8, 2012 at 8:17 AM, Jacek Caban wrote: ... I don't know any helper API for that. Writing decoder for HTML-encoded characters sounds like a good solution. How does something like the attached sound? A few comments: You definitely don't

Re: [PATCH 1/5] hhctrl.ocx: Add HTML to Unicode parsing capability.

2012-06-08 Thread Jacek Caban
On 06/08/12 16:10, Erich E. Hoover wrote: > On Fri, Jun 8, 2012 at 2:58 AM, Jacek Caban wrote: >> ... >> Did you test indexes like 'alert("really!?")' ? :) >> Seriously, HTMLDocument is not the right tool for the job. > I can. Do you have a suggestion for an alternative? I don't know any helper

Re: [PATCH 1/5] hhctrl.ocx: Add HTML to Unicode parsing capability.

2012-06-08 Thread Jacek Caban
Hi Erich, On 06/07/12 23:09, Erich E. Hoover wrote: > +/* Post the HTML text to the document */ > +array = SafeArrayCreateVector(VT_VARIANT, 0, 1); > +if(!array) > +goto cleanup; > +hr = SafeArrayAccessData(array, (LPVOID*)&array_param); > +if (FAILED(hr)) > +go