Angular: Empty Fiddle
http://angularjs.org/
HTML
<script src="http://code.angularjs.org/angular-1.0.1.js"></script>
<div ng-controller="MyCtrl">
<div ng-repeat="path in list">
<p style="font-weight:bold" ng-bind-html-unsafe="csc(path)"></p>
</div>
</div>
JavaScript
var myApp = angular.module('myApp', []);
function MyCtrl($scope) {
$scope.list = ["test/test1/test2/test3", "test3/test5/test6"];
$scope.csc = function(path) {
return path.replace(/\//g, "<span style='color:red'>/</span>");
}
}