1 |
-----BEGIN PGP SIGNED MESSAGE----- |
2 |
Hash: SHA256 |
3 |
|
4 |
On 02/11/14 09:44 AM, Luca Barbato wrote: |
5 |
> On 02/11/14 14:22, Pacho Ramos wrote: |
6 |
>> El dom, 02-11-2014 a las 13:07 +0000, Diego Elio Pettenò |
7 |
>> escribió: |
8 |
>>> |
9 |
>>>> How do you strip the html code? I was unsure about to do that |
10 |
>>>> :/ |
11 |
>>> |
12 |
>>> You should have asked. There is no need to strip. I upload both |
13 |
>>> HTML and text alike. |
14 |
>>> |
15 |
>> |
16 |
>> Ah, ok. Anyway, if AxS can tell me how was doing that would be |
17 |
>> interesting as who knows when could become useful to me in the |
18 |
>> future :) |
19 |
>> |
20 |
>> |
21 |
> in python you can (ab)use BeautifulSoup. |
22 |
> |
23 |
|
24 |
Because the html tags used in this file are fairly limited, I just |
25 |
dropped all instances of <.../> and then substituted the proper '<' |
26 |
and '>' for the < and > tags. sed, awk, etc. work fine for |
27 |
this. It doesn't work as a general-case solution, though. |
28 |
|
29 |
However, i'm dropping that now to use the text form directly. Thanks |
30 |
for the tip, Diego! |
31 |
|
32 |
-----BEGIN PGP SIGNATURE----- |
33 |
Version: GnuPG v2 |
34 |
|
35 |
iF4EAREIAAYFAlRWRmEACgkQ2ugaI38ACPAerQD/Tl/a+s683brxfzd28pmmetES |
36 |
2ub60nAjTDn8aatuRhsA/2AnlJZ6DRFpIkSvoA4jaxxl++Km5QqCQ7BRhKQCjUWd |
37 |
=ufJS |
38 |
-----END PGP SIGNATURE----- |