Commit 0746b3c6 by Siti Aisah

remove strip tags for title and content

parent f57522d8
...@@ -79,8 +79,8 @@ class AgendaController extends Controller ...@@ -79,8 +79,8 @@ class AgendaController extends Controller
*/ */
public function store(Request $request) public function store(Request $request)
{ {
$request['content'] = strip_tags($request->content); $request['content'] = $request->content;
$request['title'] = strip_tags($request->title); $request['title'] = $request->title;
$request->validate([ $request->validate([
'title' => 'required', 'title' => 'required',
'content' => 'required|min:3', 'content' => 'required|min:3',
...@@ -249,16 +249,16 @@ class AgendaController extends Controller ...@@ -249,16 +249,16 @@ class AgendaController extends Controller
*/ */
public function update(Request $request, $id) public function update(Request $request, $id)
{ {
$request['content'] = strip_tags($request->content); $request['content'] = $request->content;
$request['content_en'] = strip_tags($request->content_en); $request['content_en'] = $request->content_en;
$request['content_de'] = strip_tags($request->content_de); $request['content_de'] = $request->content_de;
$request['content_sa'] = strip_tags($request->content_sa); $request['content_sa'] = $request->content_sa;
$request['content_zh'] = strip_tags($request->content_zh); $request['content_zh'] = $request->content_zh;
$request['title'] = strip_tags($request->title); $request['title'] = $request->title;
$request['title_en'] = strip_tags($request->title_en); $request['title_en'] = $request->title_en;
$request['title_de'] = strip_tags($request->title_de); $request['title_de'] = $request->title_de;
$request['title_sa'] = strip_tags($request->title_sa); $request['title_sa'] = $request->title_sa;
$request['title_zh'] = strip_tags($request->title_zh); $request['title_zh'] = $request->title_zh;
$request->validate([ $request->validate([
// 'title' => 'required', // 'title' => 'required',
......
...@@ -79,8 +79,8 @@ class InformationController extends Controller ...@@ -79,8 +79,8 @@ class InformationController extends Controller
*/ */
public function store(Request $request) public function store(Request $request)
{ {
$request['content'] = strip_tags($request->content); $request['content'] = $request->content;
$request['title'] = strip_tags($request->title); $request['title'] = $request->title;
$request->validate([ $request->validate([
'title' => 'required', 'title' => 'required',
'content' => 'required|min:3', 'content' => 'required|min:3',
...@@ -247,16 +247,16 @@ class InformationController extends Controller ...@@ -247,16 +247,16 @@ class InformationController extends Controller
*/ */
public function update(Request $request, $id) public function update(Request $request, $id)
{ {
$request['content'] = strip_tags($request->content); $request['content'] = $request->content;
$request['content_en'] = strip_tags($request->content_en); $request['content_en'] = $request->content_en;
$request['content_de'] = strip_tags($request->content_de); $request['content_de'] = $request->content_de;
$request['content_sa'] = strip_tags($request->content_sa); $request['content_sa'] = $request->content_sa;
$request['content_zh'] = strip_tags($request->content_zh); $request['content_zh'] = $request->content_zh;
$request['title'] = strip_tags($request->title); $request['title'] = $request->title;
$request['title_en'] = strip_tags($request->title_en); $request['title_en'] = $request->title_en;
$request['title_de'] = strip_tags($request->title_de); $request['title_de'] = $request->title_de;
$request['title_sa'] = strip_tags($request->title_sa); $request['title_sa'] = $request->title_sa;
$request['title_zh'] = strip_tags($request->title_zh); $request['title_zh'] = $request->title_zh;
$request->validate([ $request->validate([
// 'title' => 'required', // 'title' => 'required',
......
...@@ -80,8 +80,8 @@ class PageController extends Controller ...@@ -80,8 +80,8 @@ class PageController extends Controller
public function store(Request $request) public function store(Request $request)
{ {
// dd($request); // dd($request);
$request['content'] = strip_tags($request->content); $request['content'] = $request->content;
$request['title'] = strip_tags($request->title); $request['title'] = $request->title;
$request->validate([ $request->validate([
'title' => 'required', 'title' => 'required',
'content' => 'required|min:3', 'content' => 'required|min:3',
...@@ -246,16 +246,16 @@ class PageController extends Controller ...@@ -246,16 +246,16 @@ class PageController extends Controller
public function update(Request $request, $id) public function update(Request $request, $id)
{ {
// dd($request); // dd($request);
$request['content'] = strip_tags($request->content); $request['content'] = $request->content;
$request['content_en'] = strip_tags($request->content_en); $request['content_en'] = $request->content_en;
$request['content_de'] = strip_tags($request->content_de); $request['content_de'] = $request->content_de;
$request['content_sa'] = strip_tags($request->content_sa); $request['content_sa'] = $request->content_sa;
$request['content_zh'] = strip_tags($request->content_zh); $request['content_zh'] = $request->content_zh;
$request['title'] = strip_tags($request->title); $request['title'] = $request->title;
$request['title_en'] = strip_tags($request->title_en); $request['title_en'] = $request->title_en;
$request['title_de'] = strip_tags($request->title_de); $request['title_de'] = $request->title_de;
$request['title_sa'] = strip_tags($request->title_sa); $request['title_sa'] = $request->title_sa;
$request['title_zh'] = strip_tags($request->title_zh); $request['title_zh'] = $request->title_zh;
$request->validate([ $request->validate([
// 'title' => 'required', // 'title' => 'required',
......
...@@ -89,8 +89,8 @@ class PostController extends Controller ...@@ -89,8 +89,8 @@ class PostController extends Controller
public function store(Request $request) public function store(Request $request)
{ {
// dd($request); // dd($request);
$request['content'] = strip_tags($request->content); $request['content'] = $request->content;
$request['title'] = strip_tags($request->title); $request['title'] = $request->title;
$request->validate([ $request->validate([
'title' => 'required', 'title' => 'required',
'categories' => 'required', 'categories' => 'required',
...@@ -356,16 +356,16 @@ class PostController extends Controller ...@@ -356,16 +356,16 @@ class PostController extends Controller
*/ */
public function update(Request $request, $id) public function update(Request $request, $id)
{ {
$request['content'] = strip_tags($request->content); $request['content'] = $request->content;
$request['content_en'] = strip_tags($request->content_en); $request['content_en'] = $request->content_en;
$request['content_de'] = strip_tags($request->content_de); $request['content_de'] = $request->content_de;
$request['content_sa'] = strip_tags($request->content_sa); $request['content_sa'] = $request->content_sa;
$request['content_zh'] = strip_tags($request->content_zh); $request['content_zh'] = $request->content_zh;
$request['title'] = strip_tags($request->title); $request['title'] = $request->title;
$request['title_en'] = strip_tags($request->title_en); $request['title_en'] = $request->title_en;
$request['title_de'] = strip_tags($request->title_de); $request['title_de'] = $request->title_de;
$request['title_sa'] = strip_tags($request->title_sa); $request['title_sa'] = $request->title_sa;
$request['title_zh'] = strip_tags($request->title_zh); $request['title_zh'] = $request->title_zh;
$request->validate([ $request->validate([
// 'title' => 'required', // 'title' => 'required',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment