Skip to content

Instantly share code, notes, and snippets.

View kayagultekin's full-sized avatar

Gültekin KAYA kayagultekin

  • Isparta, Turkey
View GitHub Profile
@jfversluis
jfversluis / FriendlyUrlHelper.cs
Last active September 22, 2021 07:15
Helper class to generate a slug
// Totally ripped from how Stackoverflow does it: https://stackoverflow.com/questions/25259/how-does-stack-overflow-generate-its-seo-friendly-urls/25486
public static class FriendlyUrlHelper
{
public static string GetFriendlyTitle(string title, bool remapToAscii = false, int maxlength = 80)
{
if (title == null)
{
return string.Empty;
}
using System;
using System.IO;
using System.Linq;
using System.Text;
namespace AbpWebSite.Templates
{
/// <summary>
/// Used to rename a solution
/// </summary>