Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import org.springframework.http.*;
import org.springframework.web.client.RestClientException;
import org.springframework.web.client.RestTemplate;
import org.springframework.web.util.HtmlUtils;
import org.springframework.web.util.UriComponents;
import org.springframework.web.util.UriComponentsBuilder;

Expand Down Expand Up @@ -489,7 +490,10 @@ public FeatureInfoResponse getMapFeatures(String collectionId, FeatureRequest re
// This is a simple trick to check if the html is in fact empty body, if empty
// try another url
if (html != null && (html.contains("class=\"feature\"") || html.contains("class=\"featureInfo\""))) {
return FeatureInfoResponse.builder().html(html).build();
// Some source strangely encode the html tags
return FeatureInfoResponse.builder()
.html(HtmlUtils.htmlUnescape(html))
.build();
}
} else if (MediaType.APPLICATION_XML.isCompatibleWith(response.getHeaders().getContentType())) {
FeatureInfoResponse r = xmlMapper.readValue(response.getBody(), FeatureInfoResponse.class);
Expand Down
Loading