Category: Program

shape
shape
shape
shape
shape
shape
shape
shape
Standard

Angular JS: How to display a String variable in HTML

Before version 1.2 of Angular JS it was possible to use the following directive: <p ng-bind-html-unsafe=”chamado.descricao”></p> However, this directive was removed in later versions for security reasons. How to display a variable in HTML without escaping the tags ? 1 – In your Controller pass the $scope and $sce variables. var MeuCtrl = function($scope, $sce)

Standard

PHP SQL Injection Example and How to Avoid It

SQL Injection is a technique for injecting malicious SQL code through loopholes in the application. This is a serious flaw that completely compromises the security of the site.   Example of SQL Injection   Let’s suppose that a hacker accesses a page in any store that has this security hole. A survey of this kind

Standard

Stack – C Language Implementation

The stack is one of the data structures used for various purposes in computing. It is considered a LIFO (Last in, First out) data structure, meaning that the last element to enter the stack is the first to leave. In our example below, we have reproduced the operations: PUSH – Adds an element to the

Standard

Java SimpleDateFormat – Formatting Dates

SimpleDateFormat is a Java class that allows you to format dates.   Converting dates in en-US (United States) format to pt-BR (Brazilian) format:   package com.masterdaweb.blog; import java.text.ParseException; import java.text.SimpleDateFormat; public class Tutorial { public static void main(String[] args) throws ParseException { String usDate = “1992-08-25 13:30”; SimpleDateFormat brFormat = new SimpleDateFormat(“dd-MM-yyyy HH:mm”); SimpleDateFormat usFormat

Latest news

Latest news directly from our blog.