title: Php code symbols escaped after execution (Sublime editor)
body: <p>I am aware that this might be a question with an obvious answer but I for a php-newbie it is SO not!</p>
  
  <p>I am writing php code with Sublime inside a file together with html and after I execute the files my code changes. The <code>&lt;</code>and <code>&gt;</code> is written with its escaping characters. Help..please..</p>
  
  <pre><code>&lt;?php 
  $username= trim($_POST['username']);
  $pass= trim($_POST['pass']);
  $userExist= trim($_POST['userExist']);
  $passExist= trim($_POST['passExist']);
  
  // print_r($username);
  // print_r($pass);
  
  $conn= mysqli_connect('localhost','neli','','yogies');
  
  // if(!$conn){
  //  echo "No database";
  //  exit;
  // }else {
  // //   echo "Done";
  // // }
  
  if(isset($username) &amp;&amp; isset($pass)){
      $usernameCheck = mysqli_query($conn, 'SELECT username FROM users WHERE username="'.$username.'"');
      // print_r('SELECT username FROM users WHERE username="'.$username.'"');
      if( $usernameCheck &amp;&amp; $usernameCheck-&gt;num_rows ){
          $check= 1;
      } else {
          $check=0;
      }
  }
  
  if($check==0){
  
      $userToEnter =$username;    
      $userToEnter = mysqli_real_escape_string($conn, $userToEnter);
  
      $passToEnter = $pass;
      $passToEnter = mysqli_real_escape_string($conn, $passToEnter);
  
      $sql = 'INSERT INTO users (username,password) VALUES ("'.$userToEnter.'","'.$passToEnter.'")';
      // print_r($sql);
  
      if(mysqli_query($conn, $sql)){
  
          session_start();
  
  
          // print_r('here');
          // print_r($_POST['url']);
  
  
          $doc = new DOMDocument();
          // html5 problems with tags
          // libxml_use_internal_errors(true);
          $doc-&gt;loadHTMLFile('header_nav.php');
          // html5 problems with tags
          // libxml_clear_errors();
  
          $doc-&gt;getElementById('sign')-&gt;setAttribute('display','none');
          $doc-&gt;getElementById('logout')-&gt;setAttribute('display','block');
          $doc-&gt;saveHTMLFile('header_nav.php');
  
          // header('Location: '.$_POST['url']);
  
      }
  
  }else{
      print_r('Nope');
  }
  
  ?&gt;
  
  
  
  &lt;!DOCTYPE html&gt;
  &lt;html class="wallpaper"&gt;
  &lt;head&gt;
  &lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8"&gt;
  &lt;link rel="stylesheet" type="text/css" href="./styles/css.css"&gt;
  &lt;title&gt;&lt;?php echo $pageTitile ?&gt;&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;header&gt;&lt;div class="top"&gt;
          &lt;a href="index.php" id="logo"&gt;&lt;img src="./pictures/logo.png" height="80px" width="80px"&gt;&lt;/a&gt;
          &lt;a href="#" id="sign" name="sign" display="none"&gt;Log in&lt;/a&gt;
          &lt;a href="#" id="logout" name="logout" display="block"&gt;Log out&lt;/a&gt;
  
          &lt;nav&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="#"&gt;Yoga Poses&lt;/a&gt;&lt;/li&gt;
              &lt;li class="subList"&gt;
                  &lt;span id="levels"&gt;Yoga Levels &lt;img id="arrow" src="./pictures/arrow.png"&gt;&lt;/span&gt;
                  &lt;ul class="dropdown"&gt;&lt;li&gt;&lt;a href="index.html"&gt;All levels&lt;/a&gt;&lt;/li&gt;
                      &lt;li&gt;&lt;a href="#"&gt;Level 1&lt;/a&gt;&lt;/li&gt;
                      &lt;li&gt;&lt;a href="#"&gt;Level 2&lt;/a&gt;&lt;/li&gt;
                      &lt;li&gt;&lt;a href="#"&gt;Level 3&lt;/a&gt;&lt;/li&gt;
                      &lt;li&gt;&lt;a href="#"&gt;Level 4&lt;/a&gt;&lt;/li&gt;
                  &lt;/ul&gt;&lt;/li&gt;
                  &lt;li&gt;&lt;a href="./recipes.php"&gt;Healthy and Delicious&lt;/a&gt;&lt;/li&gt;
              &lt;/ul&gt;&lt;/nav&gt;&lt;/div&gt;
  
              &lt;div id="overlay"&gt;
                  &lt;div id="background"&gt;&lt;/div&gt;
  
                  &lt;form id="loginForm" name="login" method="POST" action="&lt;?php echo htmlspecialchars($_SERVER["PHP_SELF"]);?&gt;"&gt;
  
                      &lt;!-- &lt;input type="hidden" name="url" value="&lt;?php echo 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']; ?&gt;"&gt; --&gt;
  
                      &lt;fieldset id="bordered"&gt;&lt;legend&gt;Register:&lt;/legend&gt;
                          &lt;p&gt;Username:&lt;input type="text" name="username"&gt;&lt;/p&gt;
                          &lt;p&gt;Password:&lt;input type="password" name="pass"&gt;&lt;/p&gt;
                          &lt;p&gt;Repeat pass:&lt;input type="password" name="pass2"&gt;&lt;/p&gt;
                      &lt;/fieldset&gt;&lt;fieldset&gt;&lt;legend&gt;Log in:&lt;/legend&gt;
                      &lt;p&gt;Username:&lt;input type="text" name="userExist"&gt;&lt;/p&gt;
                      &lt;p&gt;Password:&lt;input type="password" name="passExist"&gt;&lt;/p&gt;
                  &lt;/fieldset&gt;&lt;div class="btns"&gt;
                  &lt;button id="btnSubmit" class="btn" type="button" value="Submit"&gt;Submit&lt;/button&gt;
                  &lt;button class="btn" type="button" value="Cancel"&gt;Cancel&lt;/button&gt;
              &lt;/div&gt;
          &lt;/form&gt;
      &lt;/div&gt;
  &lt;/header&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>