문제

Is it possible to use GWT's SafeHTML templates to define an activeXControl? If I don't use the SafeHTML mechanism, it all works fine....however if I try to use SafeHTML it replaces my input classid with a "#".

Is SafeHTML blocking the use of classid?

Thanks!

도움이 되었습니까?

해결책

SafeHtml sanitizes URLs that you try to "inject" into attributes that it knows are of type URL. This sanitization only accepts HTTP, HTTPS, FTP and MAILTO.

You can use other URLs but you have to explicitly say they're safe to use, by passing them as SafeUri instances. You'll create such instances using UriUtils.fromTrustedString or UriUtils.fromSafeConstant.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top