diff --git a/zeppelin-interpreter/src/test/java/org/apache/zeppelin/helium/HeliumPackageTest.java b/zeppelin-interpreter/src/test/java/org/apache/zeppelin/helium/HeliumPackageTest.java index 4efeda7dca6..737e0186566 100644 --- a/zeppelin-interpreter/src/test/java/org/apache/zeppelin/helium/HeliumPackageTest.java +++ b/zeppelin-interpreter/src/test/java/org/apache/zeppelin/helium/HeliumPackageTest.java @@ -19,6 +19,7 @@ import static org.apache.commons.text.StringEscapeUtils.escapeHtml4; import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertNotEquals; import java.util.Map; @@ -31,7 +32,7 @@ void parseSpellPackageInfo() { String examplePackage = "{\n" + " \"type\" : \"SPELL\",\n" + " \"name\" : \"echo-spell\",\n" + - " \"description\" : \"'%echo' - return just what receive (example)\",\n" + + " \"description\" : \"'%echo' - return just what receive (example)i\",\n" + " \"artifact\" : \"./zeppelin-examples/zeppelin-example-spell-echo\",\n" + " \"license\" : \"Apache-2.0\",\n" + " \"icon\" : \"\",\n" + @@ -44,6 +45,7 @@ void parseSpellPackageInfo() { HeliumPackage p = HeliumPackage.fromJson(examplePackage); assertEquals("%echo", p.getSpellInfo().getMagic()); assertEquals(escapeHtml4("%echo "), p.getSpellInfo().getUsage()); + assertNotEquals("'%echo' - return just what receive (example)i", p.getDescription()); } @Test diff --git a/zeppelin-web/src/app/helium/helium.controller.js b/zeppelin-web/src/app/helium/helium.controller.js index 8de38a09484..2717c87f2ae 100644 --- a/zeppelin-web/src/app/helium/helium.controller.js +++ b/zeppelin-web/src/app/helium/helium.controller.js @@ -374,7 +374,7 @@ export default function HeliumCtrl($scope, $rootScope, $sce, }; $scope.getDescriptionText = function(pkgSearchResult) { - return $sce.trustAsHtml(pkgSearchResult.pkg.description); + return pkgSearchResult.pkg.description; }; init();