Commit 49d84459 authored by p's avatar p

Elements with parameters

parent d90b10c4
......@@ -38,7 +38,7 @@ string = """
<table>
<thead>
<tr>
<tr class="1">
<th>th1</th>
<th>th2</th>
</tr>
......
......@@ -48,16 +48,16 @@ BlOCK_ELEMENTS = {
'p': '<p\s.*?>(.*?)</p>',
'p_with_out_class': '<p>(.*?)</p>',
'thead': '<thead.*?>(.*?)</thead>',
'tr': '<tr>(.*?)</tr>'
'tr': '<tr.*?>(.*?)</tr>'
}
INLINE_ELEMENTS = {
'td': '<td>(.*?)</td>',
'tr': '<tr>(.*?)</tr>',
'th': '<th>(.*?)</th>',
'b': '<b>(.*?)</b>',
'i': '<i>(.*?)</i>',
'del': '<del>(.*?)</del>',
'td': '<td.*?>(.*?)</td>',
'tr': '<tr.*?>(.*?)</tr>',
'th': '<th.*?>(.*?)</th>',
'b': '<b.*?>(.*?)</b>',
'i': '<i.*?>(.*?)</i>',
'del': '<del.*?>(.*?)</del>',
'inline_p': '<p\s.*?>(.*?)</p>',
'inline_p_with_out_class': '<p>(.*?)</p>',
'code': '<code.*?>(.*?)</code>',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment