mbien commented on code in PR #5641:
URL: https://github.com/apache/netbeans/pull/5641#discussion_r1133481163


##########
ide/css.editor/src/org/netbeans/modules/css/editor/module/spi/CssCompletionItem.java:
##########
@@ -609,6 +620,42 @@ public ElementKind getKind() {
         public int getSortPrioOverride() {
             return super.getSortPrioOverride() - (related ? 1 : 0);
         }
+
+        /**
+         * Escape the input for usage in CSS files.
+         *
+         * @param input
+         * @return
+         */
+        private static String escape(String input) {

Review Comment:
   shouldn't NB use some encoding library, e.g. "OWASP Java Encoder" is fairly 
popular (and tiny).
   https://github.com/OWASP/owasp-java-encoder
   
https://javadoc.io/static/org.owasp.encoder/encoder/1.2.3/org/owasp/encoder/Encode.html



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to