You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After some digging around I found a way to trim the unformatted strings (containing '\r', '\v', '\f', '\n', '\t', ' ') this library returns when parsing HTML files. For example a file with multiple spaces etc can be very annoying when you for example try to train a ML algortigh that gets data from libcurl. So this function 'reduce' will tranform the string:
You can modify the text in the box to the left any way you like, and ss
then click the "Show Page" button below the box to display the
result here. Go ahead and do this as often and as long as you like.
To something like this:
You can modify the text in the box to the left any way you like, and ss then click the "Show Page" button below the box to display the result here. Go ahead and do this as often and as long as you like.
<html><head><title>Something</title><styletype="text/css"></style></head><bodybgcolor = "#ffffcc" text = "#000000"><divid="ly-title"><h1>Hello, World!</h1></div><divid="ly-body"><p>
You can modify the text in the box to the left any way you like, and ss
then click the "Show Page" button below the box to display the
result here. Go ahead and do this as often and as long as you like.
</p><p>
You can also use this page to test your Javascript functions and local
style declarations. Everything you do will be handled entirely by your own
browser; nothing you type into the text box will be sent back to the
server.
</p></div></body></html>
After some digging around I found a way to trim the unformatted strings (containing '\r', '\v', '\f', '\n', '\t', ' ') this library returns when parsing HTML files. For example a file with multiple spaces etc can be very annoying when you for example try to train a ML algortigh that gets data from libcurl. So this function 'reduce' will tranform the string:
To something like this:
You can modify the text in the box to the left any way you like, and ss then click the "Show Page" button below the box to display the result here. Go ahead and do this as often and as long as you like.
The code:
I go this from a reddit post, but it did not have an author.
The text was updated successfully, but these errors were encountered: