Skip to content

Tag: html

How to unescape HTML 5 entities in Java (')

The answers to this question mostly suggest to use apache-common-text StringEscapeUtils. But this (latest version of commons-text is 1.9) only supports HTML 4, and Mastodon appears to use HTML 5 which includes '. How can I decode HTML 5 entities, including '? Answer unbescape does the job we…

Non-html methods Spring MVC

There is a Spring MVC app. I need to track Put, Patch and Delete form methods. I use java configuration, so there is that file instead of web.xml: Last method registers HiddenHttpMethodFilter. So where is the problem? There are 2 pages: index.html and show.hmtl. First page is shown when URL is “/files&#…

Spring Boot – Host JaCoCo coverage as static HTML

I am working with Spring Boot 2.2.5 and Java 8. I have a Spring Boot webservice that I deploy and run as a linux service using the embedded Tomcat in Spring Boot. During my Maven build, I generate code coverage metrics using the JaCoCo Maven plugin, and I would like to package and host these static HTML pages…

How I can send POST request with data from table?

I want to send POST request with data which is stored in a HTML table. I’m using thymleaf. I tried to send GET request with data for build table, but I didn’t get the response data from the table while using the POST request. What is the problem? model AnkiCardDto DTO for response data from table …

Replacing URL Character Encodings in Java

I am trying to replace character encodings in URL’s to no avail, I have scouted around the internet but have only found outdated libraries and answers. For example, https://fonts.googleapis.com/css?family=Noto+Serif%3A400%2C400i%2C700%2C700i&ver=5.3.4 would become https://fonts.googleapis.com/css?fa…