This repository contains LiveCode Builder code for wrapping libtidy, the library version of HTML Tidy. HTML Tiday tidies HTML and XML and you can learn more about it on the official website. There is a good introduction for developers page as well.
The repository also contains the libtidy libraries for macOS and Windows.
Instructions for building libtidy can be found here:
On Windows you need to make some changes to the CMakeLists.txt file so that the DLL is created using the __cdecl
calling convention. LiveCode Builder seems to require this in the DLL. Attempting to suffix bindings with !stdcall
with the win32 tidy.dll binaries made available for download would fail to bind in LiveCode 9.0.5.
You will find the changes that you need to make here: