HTML inside xml tag

You can include HTML inside XML tag using CDATA container. Aand strip that HTML using javascript to show up in html page dynamically.

<?xml version="1.0" encoding="utf-8"?>
  <TextElement>This is text</TextElement>
  <HTMLElement><![CDATA[<div>your html here</div>]]></HTMLElement>

Strip it using Javascript Jquery.

$xml = $($.parseXML(myxml));
$htmlTag = $xml.find("HTMLElement").text();
$PuerHtml = $htmlTag.replace("<![CDATA[", "").replace("]]>", "");

Tags: Xml, Javascript, Html

What is SonarQube

SonarQube is an open source platform for continuous inspection of code quality to perform automatic reviews with static analysis of code to detect bugs, code smells and security vulnerabilities on 20+ Programming language including Java (including Android), C#, PHP, JavaScript, C/C++, COBOL, PL/SQL, PL/I, ABAP, VB.NET, VB6, Python, RPG, Flex, Objective-C, Swift, Web and XML.SonarQube is the only product on the market that supports a leak approach as a practice to code quality.

SonarQube offers reports on duplicated code, coding standards, unit tests, code coverage, code complexity, comments, bugs, and security vulnerabilities. SonarQube can record metrics history and provides evolution graphs. SonarQube's greatest asset is that it provides fully automated analysis and integration with Maven, Ant, Gradle, MSBuild and continuous integration tools (Atlassian Bamboo, Jenkins, Hudson, etc.).

Back in 2007, when first lines of code were created, the founders of SonarQube (originally called Sonar) had a dream to one day provide every developer the ability to measure the code quality of his projects. Their motto: “Continuous Inspection must become mainstream as Continuous Integration”.

Fully integrated with DevOps tool chains it comes with:

  • built-in integration with most build tools, which enables in most cases a no configuration approach
  • easily integration with continuous integration engines such as Jenkins, TFS/VSTS, TeamCity, Bamboo, etc.,
  • support for numerous source configuration management tools such as Git, Subversion, CVS, Mercurial, etc.,

Tags: SonarQube, Code Analysis, Open Source