거기에 방법은 HTML과 비교할 수 있습니다.python diff html을 사용하는 것이 좋습니다
html_1 = "<h1>text<h1>"
html_2 = "<h2>text<h2>"
google의 diff_prettyHtml
은 올바르게 작동하지 않습니다.
<h
<del style="background:#ffe6e6;">1</del>
<ins style="background:#e6ffe6;">2</ins>
>sadfasdf</h
<del style="background:#ffe6e6;">1</del>
<ins style="background:#e6ffe6;">2</ins>
>
하지만 난 그렇게 말하려는 <h1>text<h1>
변화 <h2>text<h2>
에 : 나는 1
변화 2
에 말할 것이다
<del style="background:#ffe6e6;"><h1>text<h1></del>
<ins style="background:#e6ffe6;"><h2>text<h2></ins>
내가 그것을 어떻게 할 수 있을까? 거기에 파이썬 라이브러리 무엇입니까?
html의 렌더링 된 출력과 다른 것을 원하십니까? html은 동일하게 렌더링되는 두 페이지가 소스 레벨에서 완전히 다를 수있는 난장판이기 때문에 그러한 도구에 대해서는 알지 못합니다. 또한 다른 브라우저는 동일한 html을 다르게 렌더링 할 수 있습니다. – wim