In the HTML toolbar of UltraEdit is the command Convert Special Characters in Selected Text to HTML Entities
(icon shows <
) which you can use to convert all ANSI characters to HTML entities. You have to select everything (Ctrl+A) and then run this command from the toolbar.
I have created also last year a complete tag list of the HTML 4.01 entities. Open View - Views/Lists - Tag List
and select HTML - Special Characters
or download and use HTML Tags and Entities
which contains everything HTML writers need.
Because you want to make this conversion on many HTML files at once, I have quickly with 1 regular expression replace and some extra typing converted the first HTML entity list in html_tags.txt to a macro code. This macro runs replace in files on *.htm (and also *.html because of Windows) in the current working directory of UltraEdit to convert ANSI characters into HTML entities. The log in the output window after macro execution is only from the last replace in files and not the total summary of all replaces.
Run manually a Find In Files with no (empty) search string, *.htm as file type specification and .\
for the directory to check what is the current working directory of UltraEdit and therefore on which files this macro will work. Depending on your settings the current working directory is either the "Start In" directory of the shortcut used to start UltraEdit, or the directory of the active document or the directory of the last opened file. It is not possible to set the current working directory directly in UltraEdit.
Or you open the file "HTML_Entities.uem" and replace all ".\"
by "your directory path\"
. You can add additionally also with a simple replace all command the ReplInFiles parameter Recursive
to every ReplInFiles line to run the replaces also on *.htm files in all subdirectories. Then open the macro file "HTML_Entities.mac", copy that modified macro code into the Windows clipboard, open the macro editor and replace the existing macro code by your modified macro code with Ctrl+V. Close the macro editor and run the macro.
The macro is written for ANSI HTML files. Don't run it on Unicode HTML files of any type (UTF-8, UTF-16). From the HTML entity list in the tag list file following entities are not present in the macro:       ‍ ‌ ­ " & < >
The macro file was created with UE v11.20 and therefore can be used also with older versions of UltraEdit and not only UE v14.xx. But the macro was not fully tested. I have it executed only once with UE v11.20 and currently latest v126.96.36.1990 on a HTML file containing German umlauts.