Я попытался использовать следующее регулярное выражение для удаления HTML пробелы и ведущие пробелыRegex заменить HTML пробелы и ведущие пробелы в Notepad ++
Find: \s*([<>])\s*
Replace: $1
Но каждый раз, когда я делаю это я в конечном итоге с 186 появлений $ 1 буквально в моем документе. Любая помощь будет принята с благодарностью
Вот пример того, что я говорю о
Это
<fieldset id="prod_desc">
<p>Original AA </p>
<b>Features:</b>
<ul>
<li>2 pole rectangular dome tent with 13.4 sq ft of vestibule storage </li>
<li>Durable, shockcorded, self-supporting fiberglass frame and ring and pin/pole pocket assembly </li>
<li>2 side opening door panels are constructed entirely of no see-um mesh to maximize air flow inside </li>
<li>Poke-out vent in side wall allows the option of additional ventilation when needed </li>
<li>2 interior storage pockets keep essential items handy Specifications: </li>
<li>Season: 3 </li>
<li>Sleeps: 2 </li>
<li>Doors: 2 </li>
<li>Windows: 2 </li>
<li>Weight: 5 lbs 12 oz </li>
<li>Area: 36.5 Sq. Ft. </li>
<li>Center Height: 3' 7.5"</li>
</ul>
</fieldset>
должны стать:
<fieldset id="prod_desc"><p>Original AA</p><b>Features:</b><ul><li>2 pole rectangular dome tent with 13.4 sq ft of vestibule storage</li><li>Durable, shockcorded, self-supporting fiberglass frame and ring and pin/pole pocket assembly</li><li>2 side opening door panels are constructed entirely of no see-um mesh to maximize air flow inside</li><li>Poke-out vent in side wall allows the option of additional ventilation when needed</li><li>2 interior storage pockets keep essential items handy Specifications:</li><li>Season: 3</li><li>Sleeps: 2</li><li>Doors: 2</li><li>Windows: 2</li><li>Weight: 5 lbs 12 oz</li><li>Area: 36.5 Sq. Ft.</li><li>Center Height: 3' 7.5"</li></ul></fieldset>
попытаться заменить на '\ 1' –
Я бы посмотрел плагин, возможно, HTML Tidy с соответствующими настройками. Анализ HTML с регулярными выражениями приводит к боли. – TrueWill